diff options
| author | Robert Collins <robertc@robertcollins.net> | 2015-03-10 14:03:25 +1300 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2015-03-10 14:03:25 +1300 |
| commit | 93e962b2b47600de08d8c5c539b702927037337b (patch) | |
| tree | 6172e04d386c577f61b80b769ea87f28de2957cf /python/subunit/tests/__init__.py | |
| parent | b0c7d55352b644d242994e734422c9e3dc02c6bb (diff) | |
| download | subunit-git-1.1.0.tar.gz | |
Support --locals in tracebacks and release 1.1.01.1.0
Diffstat (limited to 'python/subunit/tests/__init__.py')
| -rw-r--r-- | python/subunit/tests/__init__.py | 10 |
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 ( |
