| 20 | |
| 21 | |
| 22 | class _FailedTest(case.TestCase): |
| 23 | _testMethodName = None |
| 24 | |
| 25 | def __init__(self, method_name, exception): |
| 26 | self._exception = exception |
| 27 | super(_FailedTest, self).__init__(method_name) |
| 28 | |
| 29 | def __getattr__(self, name): |
| 30 | if name != self._testMethodName: |
| 31 | return super(_FailedTest, self).__getattr__(name) |
| 32 | def testFailure(): |
| 33 | raise self._exception |
| 34 | return testFailure |
| 35 | |
| 36 | |
| 37 | def _make_failed_import_test(name, suiteClass): |
no outgoing calls
no test coverage detected
searching dependent graphs…