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

Function load_tests

Lib/test/test_threading_local.py:240–251  ·  view source on GitHub ↗
(loader, tests, pattern)

Source from the content-addressed store, hash-verified

238
239
240def load_tests(loader, tests, pattern):
241 tests.addTest(DocTestSuite('_threading_local'))
242
243 local_orig = _threading_local.local
244 def setUp(test):
245 _threading_local.local = _thread._local
246 def tearDown(test):
247 _threading_local.local = local_orig
248 tests.addTests(DocTestSuite('_threading_local',
249 setUp=setUp, tearDown=tearDown)
250 )
251 return tests
252
253
254if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

DocTestSuiteFunction · 0.90
addTestMethod · 0.80
addTestsMethod · 0.80

Tested by

no test coverage detected