import iso8601
from testtools import content, content_type, ExtendedToOriginalDecorator
-from testtools.testresult import _StringException
+try:
+ from testtools.testresult.real import _StringException
+ RemoteException = _StringException
+ _remote_exception_str = '_StringException' # For testing.
+except ImportError:
+ raise ImportError ("testtools.testresult does not contain _StringException, check your version.")
+
+
+from testtools.testresult.real import _StringException
import chunked, details, test_results
self._stream.write(line)
-try:
- from testtools.testresult import _StringException as RemoteException
- _remote_exception_str = '_StringException' # For testing.
-except ImportError:
- raise ImportError ("testtools.testresult does not contain _StringException, check your version.")
-
-
class TestProtocolClient(unittest.TestResult):
"""A TestResult which generates a subunit stream for a test run.