MCPcopy Index your code
hub / github.com/python/cpython / SkipDocTestCase

Class SkipDocTestCase

Lib/doctest.py:2520–2534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2518 return "Doctest: " + self._dt_test.name
2519
2520class SkipDocTestCase(DocTestCase):
2521 def __init__(self, module):
2522 self.module = module
2523 super().__init__(None)
2524
2525 def setUp(self):
2526 self.skipTest("DocTestSuite will not work with -O2 and above")
2527
2528 def test_skip(self):
2529 pass
2530
2531 def shortDescription(self):
2532 return "Skipping tests from %s" % self.module.__name__
2533
2534 __str__ = shortDescription
2535
2536
2537class _DocTestSuite(unittest.TestSuite):

Callers 1

DocTestSuiteFunction · 0.85

Calls

no outgoing calls

Tested by 1

DocTestSuiteFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…