summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_thread.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-01-16 21:52:43 (GMT)
committerGitHub <noreply@github.com>2022-01-16 21:52:43 (GMT)
commit91e33ac3d08a1c6004c469da2c0e2a97b5bdc53c (patch)
tree93e1ad6d692a706bd319b6c705642487499f4965 /Lib/test/test_thread.py
parent5cd9a162cd02a3d0f1b0a182d80feeb17439e84f (diff)
downloadcpython-91e33ac3d08a1c6004c469da2c0e2a97b5bdc53c.zip
cpython-91e33ac3d08a1c6004c469da2c0e2a97b5bdc53c.tar.gz
cpython-91e33ac3d08a1c6004c469da2c0e2a97b5bdc53c.tar.bz2
bpo-40280: Add requires_fork test helper (GH-30622)
Diffstat (limited to 'Lib/test/test_thread.py')
-rw-r--r--Lib/test/test_thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_thread.py b/Lib/test/test_thread.py
index 4ae8a83..d55fb73 100644
--- a/Lib/test/test_thread.py
+++ b/Lib/test/test_thread.py
@@ -224,7 +224,7 @@ class TestForkInThread(unittest.TestCase):
def setUp(self):
self.read_fd, self.write_fd = os.pipe()
- @unittest.skipUnless(hasattr(os, 'fork'), 'need os.fork')
+ @support.requires_fork()
@threading_helper.reap_threads
def test_forkinthread(self):
pid = None