mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -198,8 +198,7 @@ class TestRandomNameSequence(BaseTestCase):
|
|||
if i == 20:
|
||||
break
|
||||
|
||||
@unittest.skipUnless(hasattr(os, 'fork'),
|
||||
"os.fork is required for this test")
|
||||
@support.requires_fork()
|
||||
def test_process_awareness(self):
|
||||
# ensure that the random source differs between
|
||||
# child and parent.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue