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

Function skip_unless_reliable_fork

Lib/test/test_threading.py:44–53  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

42
43
44def skip_unless_reliable_fork(test):
45 if not support.has_fork_support:
46 return unittest.skip("requires working os.fork()")(test)
47 if sys.platform in platforms_to_skip:
48 return unittest.skip("due to known OS bug related to thread+fork")(test)
49 if support.HAVE_ASAN_FORK_BUG:
50 return unittest.skip("libasan has a pthread_create() dead lock related to thread+fork")(test)
51 if support.check_sanitizer(thread=True):
52 return unittest.skip("TSAN doesn't support threads after fork")(test)
53 return test
54
55
56def requires_subinterpreters(meth):

Callers

nothing calls this directly

Calls 1

skipMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…