From 91e33ac3d08a1c6004c469da2c0e2a97b5bdc53c Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sun, 16 Jan 2022 23:52:43 +0200 Subject: bpo-40280: Add requires_fork test helper (GH-30622) --- Lib/test/test_tempfile.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/test/test_tempfile.py') diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index 2b0ec46a10..25fddaec6d 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. -- cgit v1.2.1