diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2011-11-07 11:50:05 +0100 |
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2011-11-07 11:50:05 +0100 |
| commit | 83e6aa52f7a05690e151771d80a971e5d8c9cf59 (patch) | |
| tree | e678e391b85f4370731f133a67f89232d9638e8c /python | |
| parent | 13b591ff782773f721d96a0b8b1edf6ae741e31d (diff) | |
| parent | 7384e95b6e49ea544739abfdd52e846eab292f69 (diff) | |
| download | subunit-git-83e6aa52f7a05690e151771d80a971e5d8c9cf59.tar.gz | |
Merge support for newer location of {Extended,Python26,Python27}TestResult in testtools.
Diffstat (limited to 'python')
| -rw-r--r-- | python/subunit/tests/test_test_protocol.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/python/subunit/tests/test_test_protocol.py b/python/subunit/tests/test_test_protocol.py index 03d921a..c93aabd 100644 --- a/python/subunit/tests/test_test_protocol.py +++ b/python/subunit/tests/test_test_protocol.py @@ -22,11 +22,18 @@ from testtools import skipIf, TestCase from testtools.compat import _b, _u, BytesIO, StringIO from testtools.content import Content, TracebackContent from testtools.content_type import ContentType -from testtools.tests.helpers import ( - Python26TestResult, - Python27TestResult, - ExtendedTestResult, - ) +try: + from testtools.testresult.doubles import ( + Python26TestResult, + Python27TestResult, + ExtendedTestResult, + ) +except ImportError: + from testtools.tests.helpers import ( + Python26TestResult, + Python27TestResult, + ExtendedTestResult, + ) import subunit from subunit import _remote_exception_str, _remote_exception_str_chunked |
