diff options
author | Christian Heimes <christian@python.org> | 2022-01-16 23:52:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-16 22:52:43 +0100 |
commit | 91e33ac3d08a1c6004c469da2c0e2a97b5bdc53c (patch) | |
tree | 93e1ad6d692a706bd319b6c705642487499f4965 /Lib/test/test_tempfile.py | |
parent | 5cd9a162cd02a3d0f1b0a182d80feeb17439e84f (diff) | |
download | cpython-91e33ac3d08a1c6004c469da2c0e2a97b5bdc53c.tar.gz cpython-91e33ac3d08a1c6004c469da2c0e2a97b5bdc53c.zip |
bpo-40280: Add requires_fork test helper (GH-30622)
Diffstat (limited to 'Lib/test/test_tempfile.py')
-rw-r--r-- | Lib/test/test_tempfile.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index 2b0ec46a103..25fddaec6d3 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -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. |