summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.md1
-rw-r--r--tests/test_cmd2.py5
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGES.md b/CHANGES.md
index 3f7e07c2..ed8a2641 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -15,6 +15,7 @@ rerNews
* Enhanced tab-completion of cmd2 command names to support case-insensitive completion
* Added an example showing how to remove unused commands
* Improved how transcript testing handles prompts with ANSI escape codes by stripping them
+ * Greatly improved implementation for how command output gets piped to a shell command
0.7.5
-----
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))