summaryrefslogtreecommitdiff
path: root/tests/test_acargparse.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2018-04-18 00:05:01 -0400
committerEric Lin <anselor@gmail.com>2018-04-18 00:05:01 -0400
commita448192c3747ac95c04d85c0da4abfb90297251a (patch)
tree4d980b26f595927016ba3fddbc8e5ba7dd107da4 /tests/test_acargparse.py
parent93cc2461282067a3601d6ac546a99a40a60eef93 (diff)
parent01e434183d3333b1be03c293a82e36b034e0f78b (diff)
downloadcmd2-git-a448192c3747ac95c04d85c0da4abfb90297251a.tar.gz
Merge remote-tracking branch 'origin/master' into autocompleter
Updated AutoCompleter (#349) to match new directory structure from packaging effort.
Diffstat (limited to 'tests/test_acargparse.py')
-rw-r--r--tests/test_acargparse.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/tests/test_acargparse.py b/tests/test_acargparse.py
index 01b4dce9..6f40bd42 100644
--- a/tests/test_acargparse.py
+++ b/tests/test_acargparse.py
@@ -7,26 +7,8 @@ file system paths, and shell commands.
Copyright 2017 Todd Leonhardt <todd.leonhardt@gmail.com>
Released under MIT license, see LICENSE file
"""
-import argparse
-import os
-import sys
-
-import cmd2
-from unittest import mock
import pytest
-from AutoCompleter import ACArgumentParser
-
-# Prefer statically linked gnureadline if available (for macOS compatibility due to issues with libedit)
-try:
- import gnureadline as readline
-except ImportError:
- # Try to import readline, but allow failure for convenience in Windows unit testing
- # Note: If this actually fails, you should install readline on Linux or Mac or pyreadline on Windows
- try:
- # noinspection PyUnresolvedReferences
- import readline
- except ImportError:
- pass
+from cmd2.AutoCompleter import ACArgumentParser
def test_acarg_narg_empty_tuple():