MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / wait_for_notification

Function wait_for_notification

tests_python/test_single_notification.py:74–84  ·  view source on GitHub ↗
(notification_queue, msg)

Source from the content-addressed store, hash-verified

72
73
74def wait_for_notification(notification_queue, msg):
75 __tracebackhide__ = True
76 try:
77 from Queue import Empty
78 except ImportError:
79 from queue import Empty
80 try:
81 found = notification_queue.get(timeout=2)
82 assert found == msg
83 except Empty:
84 raise AssertionError("Timed out while waiting for %s notification." % (msg,))
85
86
87def join_thread(t):

Callers 3

Calls 1

getMethod · 0.45

Tested by

no test coverage detected