diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_cmd2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 71757971..0f1328f3 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -446,7 +446,8 @@ def test_base_colorize(base_app): def _expected_no_editor_error(): expected_exception = 'OSError' - if six.PY2: + # If using Python 2 or PyPy (either 2 or 3), expect a differen excpetion than with Python 3 + if six.PY2 or hasattr(sys, "pypy_translation_info"): expected_exception = 'EnvironmentError' expected_text = normalize(""" |