if support.HAVE_ASAN_FORK_BUG:
return unittest.skip("libasan has a pthread_create() dead lock related to thread+fork")(test)
if support.check_sanitizer(thread=True):
- return unittest.skip("TSAN doesn't support threads after fork")
+ return unittest.skip("TSAN doesn't support threads after fork")(test)
return test
"current is main True\n"
)
- @unittest.skipIf(sys.platform in platforms_to_skip, "due to known OS bug")
- @support.requires_fork()
+ @skip_unless_reliable_fork
@unittest.skipUnless(hasattr(os, 'waitpid'), "test needs os.waitpid()")
def test_main_thread_after_fork_from_foreign_thread(self, create_dummy=False):
code = """if 1: