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

Function load_tests

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

Source from the content-addressed store, hash-verified

232
233
234def load_tests(loader, tests, pattern):
235 tests.addTest(DocTestSuite('_threading_local'))
236
237 local_orig = _threading_local.local
238 def setUp(test):
239 _threading_local.local = _thread._local
240 def tearDown(test):
241 _threading_local.local = local_orig
242 tests.addTests(DocTestSuite('_threading_local',
243 setUp=setUp, tearDown=tearDown)
244 )
245 return tests
246
247
248if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

DocTestSuiteFunction · 0.90
addTestMethod · 0.80
addTestsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…