mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue