MCPcopy Create free account
hub / github.com/microsoft/debugpy / T

Class T

src/debugpy/_vendored/pydevd/tests_python/test_utilities.py:489–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487
488def test_threading_hide_pydevd():
489 class T(threading.Thread):
490 def __init__(self, is_pydev_daemon_thread):
491 from _pydevd_bundle.pydevd_daemon_thread import mark_as_pydevd_daemon_thread
492
493 threading.Thread.__init__(self)
494 if is_pydev_daemon_thread:
495 mark_as_pydevd_daemon_thread(self)
496 else:
497 self.daemon = True
498 self.event = threading.Event()
499
500 def run(self):
501 self.event.wait(10)
502
503 current_count = threading.active_count()
504 t0 = T(True)

Callers 3

Calls

no outgoing calls

Tested by 1