diff options
| author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2022-02-17 10:47:54 -0500 |
|---|---|---|
| committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2022-02-17 11:13:34 -0500 |
| commit | 4621b0501acdaea7230eef97ffa526d14820af80 (patch) | |
| tree | 0f0061e6eaf4ca5d64d16fed6397b37cc152cd80 /tests_isolated | |
| parent | 07f059c17b4cb6577fbc7a2ce42d7c5bf98a83c8 (diff) | |
| download | cmd2-git-4621b0501acdaea7230eef97ffa526d14820af80.tar.gz | |
cmd2 now uses pyreadline3 when running any version of Python on Windows
Diffstat (limited to 'tests_isolated')
| -rw-r--r-- | tests_isolated/test_commandset/conftest.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/tests_isolated/test_commandset/conftest.py b/tests_isolated/test_commandset/conftest.py index 43e2af3e..41d5b6a4 100644 --- a/tests_isolated/test_commandset/conftest.py +++ b/tests_isolated/test_commandset/conftest.py @@ -24,22 +24,13 @@ from pytest import ( ) import cmd2 +from cmd2.rl_utils import ( + readline, +) from cmd2.utils import ( StdSim, ) -# 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 - def verify_help_text( cmd2_app: cmd2.Cmd, help_output: Union[str, List[str]], verbose_strings: Optional[List[str]] = None |
