summaryrefslogtreecommitdiff
path: root/Lib/test/test_random.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-01-16 23:52:43 +0200
committerGitHub <noreply@github.com>2022-01-16 22:52:43 +0100
commit91e33ac3d08a1c6004c469da2c0e2a97b5bdc53c (patch)
tree93e1ad6d692a706bd319b6c705642487499f4965 /Lib/test/test_random.py
parent5cd9a162cd02a3d0f1b0a182d80feeb17439e84f (diff)
downloadcpython-git-91e33ac3d08a1c6004c469da2c0e2a97b5bdc53c.tar.gz
bpo-40280: Add requires_fork test helper (GH-30622)
Diffstat (limited to 'Lib/test/test_random.py')
-rw-r--r--Lib/test/test_random.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py
index b80aeca26c..f980c5b8df 100644
--- a/Lib/test/test_random.py
+++ b/Lib/test/test_random.py
@@ -1293,7 +1293,7 @@ class TestModule(unittest.TestCase):
# tests validity but not completeness of the __all__ list
self.assertTrue(set(random.__all__) <= set(dir(random)))
- @unittest.skipUnless(hasattr(os, "fork"), "fork() required")
+ @test.support.requires_fork()
def test_after_fork(self):
# Test the global Random instance gets reseeded in child
r, w = os.pipe()