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

Function is_thread_unsafe

Lib/test/libregrtest/single.py:57–61  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

55
56def _parallelize_tests(suite, parallel_threads: int):
57 def is_thread_unsafe(test):
58 test_method = getattr(test, test._testMethodName)
59 instance = test_method.__self__
60 return (getattr(test_method, "__unittest_thread_unsafe__", False) or
61 getattr(instance, "__unittest_thread_unsafe__", False))
62
63 newtests: list[object] = []
64 for test in suite._tests:

Callers 1

_parallelize_testsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…