From 4621b0501acdaea7230eef97ffa526d14820af80 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Thu, 17 Feb 2022 10:47:54 -0500 Subject: cmd2 now uses pyreadline3 when running any version of Python on Windows --- tests_isolated/test_commandset/conftest.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'tests_isolated') 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 -- cgit v1.2.1