summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r--tests/test_cmd2.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index db834a68..77ee6e6c 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -589,7 +589,10 @@ def test_pipe_to_shell_error(base_app, capsys):
expected_error = 'FileNotFoundError'
if six.PY2:
- expected_error = 'OSError'
+ if sys.platform.startswith('win'):
+ expected_error = 'WindowsError'
+ else:
+ expected_error = 'OSError'
assert err.startswith("EXCEPTION of type '{}' occurred with message:".format(expected_error))