summaryrefslogtreecommitdiff
path: root/python/subunit/tests
diff options
context:
space:
mode:
Diffstat (limited to 'python/subunit/tests')
-rw-r--r--python/subunit/tests/__init__.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/python/subunit/tests/__init__.py b/python/subunit/tests/__init__.py
index c1c2c64..ae772e7 100644
--- a/python/subunit/tests/__init__.py
+++ b/python/subunit/tests/__init__.py
@@ -22,14 +22,12 @@ from testscenarios import generate_scenarios
# Before the test module imports to avoid circularity.
# For testing: different pythons have different str() implementations.
-if sys.version_info > (3, 0):
+if (3,1) < sys.version_info < (3, 4):
_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"
else:
- _remote_exception_repr = "_StringException"
- _remote_exception_str = "Traceback (most recent call last):\n_StringException"
- _remote_exception_str_chunked = "3D\r\n" + _remote_exception_str + ": boo qux\n0\r\n"
+ _remote_exception_repr = "_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"
from subunit.tests import (