summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-02-09 00:47:56 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-02-09 00:47:56 -0500
commitd4cd3d033dc78624afed4d5419f14cece4ab586b (patch)
treef932397e0994234b72386680cfcf6865fd6f98ca
parent7d4cbc4f2fcfe1cc2375146b572301478f1c1779 (diff)
downloadcmd2-git-d4cd3d033dc78624afed4d5419f14cece4ab586b.tar.gz
Skip the pexpect-based unit test on Windows due to the pexpect API being different there
-rw-r--r--tests/test_cmd2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index 618ac532..9f8a4044 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -1528,6 +1528,8 @@ 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")
def test_persistent_history(request):
test_dir = os.path.dirname(request.module.__file__)
persistent_app = os.path.join(test_dir, '..', 'examples', 'persistent_history.py')