| 2353 | return "Doctest: " + self._dt_test.name |
| 2354 | |
| 2355 | class SkipDocTestCase(DocTestCase): |
| 2356 | def __init__(self, module): |
| 2357 | self.module = module |
| 2358 | DocTestCase.__init__(self, None) |
| 2359 | |
| 2360 | def setUp(self): |
| 2361 | self.skipTest("DocTestSuite will not work with -O2 and above") |
| 2362 | |
| 2363 | def test_skip(self): |
| 2364 | pass |
| 2365 | |
| 2366 | def shortDescription(self): |
| 2367 | return "Skipping tests from %s" % self.module.__name__ |
| 2368 | |
| 2369 | __str__ = shortDescription |
| 2370 | |
| 2371 | |
| 2372 | class _DocTestSuite(unittest.TestSuite): |