| 2442 | return "Doctest: " + self._dt_test.name |
| 2443 | |
| 2444 | class SkipDocTestCase(DocTestCase): |
| 2445 | def __init__(self, module): |
| 2446 | self.module = module |
| 2447 | DocTestCase.__init__(self, None) |
| 2448 | |
| 2449 | def setUp(self): |
| 2450 | self.skipTest("DocTestSuite will not work with -O2 and above") |
| 2451 | |
| 2452 | def test_skip(self): |
| 2453 | pass |
| 2454 | |
| 2455 | def shortDescription(self): |
| 2456 | return "Skipping tests from %s" % self.module.__name__ |
| 2457 | |
| 2458 | __str__ = shortDescription |
| 2459 | |
| 2460 | |
| 2461 | class _DocTestSuite(unittest.TestSuite): |