mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
bpo-40280: Add requires_fork test helper (GH-30622)
This commit is contained in:
parent
5cd9a162cd
commit
91e33ac3d0
10 changed files with 34 additions and 18 deletions
|
|
@ -14,7 +14,9 @@ from test import support
|
|||
|
||||
|
||||
# Skip test if fork does not exist.
|
||||
support.get_attribute(os, 'fork')
|
||||
if not support.has_fork_support:
|
||||
raise unittest.SkipTest("test module requires working os.fork")
|
||||
|
||||
|
||||
class ForkTest(ForkWait):
|
||||
def test_threaded_import_lock_fork(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue