MCPcopy Index your code
hub / github.com/RustPython/RustPython / SkipDocTestCase

Class SkipDocTestCase

Lib/doctest.py:2444–2458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2442 return "Doctest: " + self._dt_test.name
2443
2444class 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
2461class _DocTestSuite(unittest.TestSuite):

Callers 1

DocTestSuiteFunction · 0.85

Calls

no outgoing calls

Tested by 1

DocTestSuiteFunction · 0.68