summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/_test_multiprocessing.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index 044bfc9..bf5d541 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -5434,7 +5434,9 @@ class TestStartMethod(unittest.TestCase):
while not queue.empty():
results.append(queue.get())
- self.assertEqual(results, [2, 1])
+ # gh-109706: queue.put(1) can write into the queue before queue.put(2),
+ # there is no synchronization in the test.
+ self.assertSetEqual(set(results), set([2, 1]))
@unittest.skipIf(sys.platform == "win32",