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 | f55faa5ed51fd4d66afb5ea13d69986cb2fb4499 (patch) | |
| tree | e678e391b85f4370731f133a67f89232d9638e8c /python/subunit | |
| parent | 8edcd6d5b0aa64be7e2b997c5d9688d1d324dacc (diff) | |
| parent | 5fc048ad72eeb945a1017d5a99049b0fdf1a6b07 (diff) | |
| download | subunit-f55faa5ed51fd4d66afb5ea13d69986cb2fb4499.tar.gz | |
Merge support for newer location of {Extended,Python26,Python27}TestResult in testtools.
Diffstat (limited to 'python/subunit')
| -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 |
