diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-05-28 06:10:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 00:10:27 +0200 |
commit | e80697d687b610bd7fb9104af905dec8f0bc55a7 (patch) | |
tree | c848b98eaec2d959237fda725cf47b059f34b12a /Lib/test/fork_wait.py | |
parent | 7d80b35af1ee03834ae4af83e920dee89c2bc273 (diff) | |
download | cpython-git-e80697d687b610bd7fb9104af905dec8f0bc55a7.tar.gz |
bpo-40275: Adding threading_helper submodule in test.support (GH-20263)
Diffstat (limited to 'Lib/test/fork_wait.py')
-rw-r--r-- | Lib/test/fork_wait.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/fork_wait.py b/Lib/test/fork_wait.py index 249b5e9607..4d3dbd8e83 100644 --- a/Lib/test/fork_wait.py +++ b/Lib/test/fork_wait.py @@ -12,6 +12,7 @@ active threads survive in the child after a fork(); this is an error. import os, sys, time, unittest import threading from test import support +from test.support import threading_helper LONGSLEEP = 2 @@ -21,7 +22,7 @@ NUM_THREADS = 4 class ForkWait(unittest.TestCase): def setUp(self): - self._threading_key = support.threading_setup() + self._threading_key = threading_helper.threading_setup() self.alive = {} self.stop = 0 self.threads = [] @@ -33,7 +34,7 @@ class ForkWait(unittest.TestCase): thread.join() thread = None self.threads.clear() - support.threading_cleanup(*self._threading_key) + threading_helper.threading_cleanup(*self._threading_key) def f(self, id): while not self.stop: |