summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-03-13 01:03:02 -0400
committerGitHub <noreply@github.com>2017-03-13 01:03:02 -0400
commit8b0505c5ccdc7516572afe1426d82666f97232af (patch)
treec794b2b01ca77eaf42c04faec334fdb806ce22ae /tests
parent2e02245201fd4f042a0fb1bccae0c92c135b73d9 (diff)
parent4770cababcfd66351787b4668e127b14959e1040 (diff)
downloadcmd2-git-8b0505c5ccdc7516572afe1426d82666f97232af.tar.gz
Merge pull request #76 from python-cmd2/travis_ci
Added additional builds to Travis CI config
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmd2.py3
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("""