diff options
| author | Robert Collins <robertc@robertcollins.net> | 2015-07-13 16:12:09 +1200 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2015-07-13 17:55:22 +1200 |
| commit | 557bbf694f5cb6cb9202a1a41d9b057e7377f7ed (patch) | |
| tree | bba91060ca00f0f068b649179013b6fbb48a6487 /python/subunit/tests/__init__.py | |
| parent | 13899a42e0906781bdb2e2ef544fac3b666664ad (diff) | |
| download | subunit-git-557bbf694f5cb6cb9202a1a41d9b057e7377f7ed.tar.gz | |
Handle pypy, Python 3.4 and 3.5 in tests.
Diffstat (limited to 'python/subunit/tests/__init__.py')
| -rw-r--r-- | python/subunit/tests/__init__.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/python/subunit/tests/__init__.py b/python/subunit/tests/__init__.py index ae772e7..a62a006 100644 --- a/python/subunit/tests/__init__.py +++ b/python/subunit/tests/__init__.py @@ -22,10 +22,7 @@ from testscenarios import generate_scenarios # Before the test module imports to avoid circularity. # For testing: different pythons have different str() implementations. -if (3,1) < sys.version_info < (3, 4): - _remote_exception_repr = "testtools.testresult.real._StringException" -else: - _remote_exception_repr = "_StringException" +_remote_exception_repr = "testtools.testresult.real._StringException" _remote_exception_str = "Traceback (most recent call last):\ntesttools.testresult.real._StringException" _remote_exception_str_chunked = "57\r\n" + _remote_exception_str + ": boo qux\n0\r\n" |
