(methodname, exception, suiteClass)
| 48 | return suiteClass((test,)), message |
| 49 | |
| 50 | def _make_skipped_test(methodname, exception, suiteClass): |
| 51 | @case.skip(str(exception)) |
| 52 | def testSkipped(self): |
| 53 | pass |
| 54 | attrs = {methodname: testSkipped} |
| 55 | TestClass = type("ModuleSkipped", (case.TestCase,), attrs) |
| 56 | return suiteClass((TestClass(methodname),)) |
| 57 | |
| 58 | def _splitext(path): |
| 59 | return os.path.splitext(path)[0] |
no test coverage detected