summaryrefslogtreecommitdiff
path: root/python/subunit/__init__.py
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2013-11-24 11:59:39 +1300
committerRobert Collins <robertc@robertcollins.net>2013-11-24 11:59:39 +1300
commit7262d3823e8435b7ca9af2226ba49c5029393a38 (patch)
treebff1e6cb37355b20143471be2279508ec328a309 /python/subunit/__init__.py
parentf025f2ea921ab8c551b7c6b7fa3de23099057504 (diff)
downloadsubunit-7262d3823e8435b7ca9af2226ba49c5029393a38.tar.gz
The test suite was failing 6 tests due to testtools changing it's output
formatting of exceptions. (Robert Collins)
Diffstat (limited to 'python/subunit/__init__.py')
-rw-r--r--python/subunit/__init__.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py
index a259880..b385e9b 100644
--- a/python/subunit/__init__.py
+++ b/python/subunit/__init__.py
@@ -133,13 +133,6 @@ from testtools.compat import _b, _u, BytesIO, StringIO
try:
from testtools.testresult.real import _StringException
RemoteException = _StringException
- # For testing: different pythons have different str() implementations.
- if sys.version_info > (3, 0):
- _remote_exception_str = "testtools.testresult.real._StringException"
- _remote_exception_str_chunked = "34\r\n" + _remote_exception_str
- else:
- _remote_exception_str = "_StringException"
- _remote_exception_str_chunked = "1A\r\n" + _remote_exception_str
except ImportError:
raise ImportError ("testtools.testresult.real does not contain "
"_StringException, check your version.")