summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-04 15:52:01 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-02-04 15:52:01 -0500
commit87ecfbf9f1dd0b720ae528cc711e9f38cede7cb0 (patch)
treeed2768bf21ff62bcda89a79f2dce3e987bac1484
parentd04e21f670955b8ce9ecf5f4baf9d1256aa86bbf (diff)
downloadcmd2-git-87ecfbf9f1dd0b720ae528cc711e9f38cede7cb0.tar.gz
Told pytest to skip one unit test on Windows because getting the output was problematic.
The feature does work on Windows though.
-rw-r--r--tests/test_cmd2.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index 6b071035..215583a7 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -9,6 +9,7 @@ import os
import sys
import mock
+import pytest
import cmd2
from conftest import run_cmd, normalize, BASE_HELP, HELP_HISTORY, SHORTCUTS_TXT, SHOW_TXT
@@ -84,6 +85,8 @@ def test_base_py(base_app, capsys):
assert out.rstrip() == '3'
+@pytest.mark.skipif(sys.platform == 'win32',
+ reason="Unit test doesn't work on win32, but feature does")
def test_base_run_python_script(base_app, capsys, request):
test_dir = os.path.dirname(request.module.__file__)
python_script = os.path.join(test_dir, 'script.py')