summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-11-07 11:50:05 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-11-07 11:50:05 +0100
commit83e6aa52f7a05690e151771d80a971e5d8c9cf59 (patch)
treee678e391b85f4370731f133a67f89232d9638e8c /python
parent13b591ff782773f721d96a0b8b1edf6ae741e31d (diff)
parent7384e95b6e49ea544739abfdd52e846eab292f69 (diff)
downloadsubunit-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.py17
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