| 487 | |
| 488 | def 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) |
no outgoing calls