Skip to content

Commit 9c31fd8

Browse files
committed
testcase: Remove unnecessary try_import use
These were removed in Python 3 and will never be present. Signed-off-by: Stephen Finucane <[email protected]>
1 parent 48d7c5d commit 9c31fd8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

testtools/testcase.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ class _UnexpectedSuccess(Exception):
6060
Note that this exception is private plumbing in testtools' testcase
6161
module.
6262
"""
63-
_UnexpectedSuccess = try_import(
64-
'unittest.case._UnexpectedSuccess', _UnexpectedSuccess)
6563

6664

6765
class _ExpectedFailure(Exception):
@@ -70,8 +68,6 @@ class _ExpectedFailure(Exception):
7068
Note that this exception is private plumbing in testtools' testcase
7169
module.
7270
"""
73-
_ExpectedFailure = try_import(
74-
'unittest.case._ExpectedFailure', _ExpectedFailure)
7571

7672

7773
# Copied from unittest before python 3.4 release. Used to maintain

0 commit comments

Comments
 (0)