From f3c6b1b32d614076dc17d2736ae1860d37a36cd5 Mon Sep 17 00:00:00 2001 From: Todd Leonhardt Date: Fri, 9 Feb 2018 01:17:33 -0500 Subject: Flag the pexpect unit test of the persistent history to only run on macOS - The Windows pexpect API is different from macOS or Linux - On Travis CI, the test behaves as if readline isn't working on those machines - The test runs fine when run on my system (on either macOS or Linux) --- tests/test_cmd2.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/test_cmd2.py') diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 9f8a4044..ee9c1fc3 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -1528,9 +1528,10 @@ def test_poutput_none(base_app): assert out == expected -@pytest.mark.skipif(sys.platform == 'win32', - reason="pexpect doesn't have a spawn() function on Windows") +@pytest.mark.skipif(sys.platform == 'win32' or sys.platform.startswith('lin'), + reason="pexpect doesn't have a spawn() function on Windows and readline doesn't work on TravisCI") def test_persistent_history(request): + """Will run on macOS to verify expected persistent history behavior.""" test_dir = os.path.dirname(request.module.__file__) persistent_app = os.path.join(test_dir, '..', 'examples', 'persistent_history.py') -- cgit v1.2.1