MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / SkipDocTestCase

Class SkipDocTestCase

tools/python-3.11.9-amd64/Lib/doctest.py:2355–2369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2353 return "Doctest: " + self._dt_test.name
2354
2355class 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
2372class _DocTestSuite(unittest.TestSuite):

Callers 1

DocTestSuiteFunction · 0.85

Calls

no outgoing calls

Tested by 1

DocTestSuiteFunction · 0.68