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

Function interrupt

tests_python/test_utilities.py:434–440  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

432 main_thread = threading.current_thread()
433
434 def interrupt():
435 # sleep here so that the main thread in the test can get to the sleep too (otherwise
436 # if we interrupt too fast we won't really check that the sleep itself
437 # got interrupted -- although if that happens on some tests runs it's
438 # not really an issue either).
439 time.sleep(1)
440 interrupt_main_thread(main_thread)
441
442 if IS_PYPY:
443 # On PyPy a time.sleep() is not being properly interrupted,

Callers

nothing calls this directly

Calls 1

interrupt_main_threadFunction · 0.90

Tested by

no test coverage detected