diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-07 01:24:44 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-07 01:24:44 +0100 |
commit | 638dd490e5c787cbc7a4a197bdec16bc3e0e4718 (patch) | |
tree | 4126a5711d5f5bbef5c34c4363dca379b9737f0a | |
parent | 8c10bc4e75d9748e63ce86ce785955bf378546b3 (diff) | |
download | cpython-git-638dd490e5c787cbc7a4a197bdec16bc3e0e4718.tar.gz |
sync issue: try using a sleep() on windows
-rw-r--r-- | Lib/test/_test_multiprocessing.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index b57f5a125c..d0a348a68f 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -4815,6 +4815,9 @@ class TestSyncManagerTypes(unittest.TestCase): def test_lock(self, lname="Lock"): o = getattr(self.manager, lname)() self.run_worker(self._test_lock, o) + # See: https://ci.appveyor.com/project/python/cpython/builds/22183338 + if os.name == 'nt': + time.sleep(0.3) o.release() self.assertRaises(RuntimeError, o.release) # already released @@ -4840,6 +4843,9 @@ class TestSyncManagerTypes(unittest.TestCase): def test_condition(self): o = self.manager.Condition() self.run_worker(self._test_condition, o) + # See: https://ci.appveyor.com/project/python/cpython/builds/22183338 + if os.name == 'nt': + time.sleep(0.3) o.release() self.assertRaises(RuntimeError, o.release) # already released |