Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aad0cba

Browse filesBrowse files
committed
add _wait()
1 parent 7d01747 commit aad0cba
Copy full SHA for aad0cba

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎Lib/test/_test_multiprocessing.py

Copy file name to clipboardExpand all lines: Lib/test/_test_multiprocessing.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,6 +1281,7 @@ def test_closed_queue_put_get_exceptions(self):
12811281
def test_shutdown_empty(self):
12821282
for q in multiprocessing.Queue(), multiprocessing.JoinableQueue():
12831283
q.shutdown()
1284+
_wait()
12841285
with self.assertRaises(
12851286
pyqueue.ShutDown, msg="Didn't appear to shut-down queue"
12861287
):
@@ -1294,6 +1295,7 @@ def test_shutdown_nonempty(self):
12941295
for q in multiprocessing.Queue(1), multiprocessing.JoinableQueue(1):
12951296
q.put("data")
12961297
q.shutdown()
1298+
_wait()
12971299
q.get()
12981300
with self.assertRaises(
12991301
pyqueue.ShutDown, msg="Didn't appear to shut-down queue"
@@ -1304,6 +1306,7 @@ def test_shutdown_immediate(self):
13041306
for q in multiprocessing.Queue(), multiprocessing.JoinableQueue():
13051307
q.put("data")
13061308
q.shutdown(immediate=True)
1309+
_wait()
13071310
with self.assertRaises(
13081311
pyqueue.ShutDown, msg="Didn't appear to shut-down queue"
13091312
):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.