diff options
| author | Jonathan Lange <jml@canonical.com> | 2012-02-01 18:38:26 +0000 |
|---|---|---|
| committer | Jonathan Lange <jml@canonical.com> | 2012-02-01 18:38:26 +0000 |
| commit | 6033d5b90991de13604f7de3ed6e42581b01d2c2 (patch) | |
| tree | 08f373c1d9e4d42a5d35e2f5dde83c9eb44f5e1b /python | |
| parent | 649f8be2db11b20dece2d16613f46a0fc7b76034 (diff) | |
| download | subunit-git-6033d5b90991de13604f7de3ed6e42581b01d2c2.tar.gz | |
Deal with testtools moving doubles out of helpers.
Diffstat (limited to 'python')
| -rw-r--r-- | python/subunit/tests/test_test_protocol.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/python/subunit/tests/test_test_protocol.py b/python/subunit/tests/test_test_protocol.py index c5a064e..6297ea9 100644 --- a/python/subunit/tests/test_test_protocol.py +++ b/python/subunit/tests/test_test_protocol.py @@ -21,11 +21,16 @@ import os from testtools.content import Content, TracebackContent from testtools.content_type import ContentType -from testtools.tests.helpers import ( - Python26TestResult, - Python27TestResult, - ExtendedTestResult, - ) +from testtools import try_imports +Python26TestResult = try_imports( + ['testtools.testresult.doubles.Python26TestResult', + 'testtools.tests.helpers.Python26TestResult']) +Python27TestResult = try_imports( + ['testtools.testresult.doubles.Python27TestResult', + 'testtools.tests.helpers.Python27TestResult']) +ExtendedTestResult = try_imports( + ['testtools.testresult.doubles.ExtendedTestResult', + 'testtools.tests.helpers.ExtendedTestResult']) import subunit from subunit import _remote_exception_str |
