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

Function test_thread_info

tests_python/test_frame_evaluator.py:27–43  ·  view source on GitHub ↗
(_times)

Source from the content-addressed store, hash-verified

25
26@pytest.mark.parametrize("_times", range(2))
27def test_thread_info(_times):
28 obj = CheckClass()
29 obj.collect_info()
30 assert obj.thread_info.additional_info is not None
31 assert not obj.thread_info.is_pydevd_thread
32 thread_info = obj.thread_info
33 obj.collect_info()
34 assert obj.thread_info is thread_info
35
36 obj = CheckClass()
37 t = threading.Thread(target=obj.collect_info)
38 t.is_pydev_daemon_thread = True
39 t.start()
40 t.join()
41
42 assert obj.thread_info.additional_info is None
43 assert obj.thread_info.is_pydevd_thread
44
45
46def method():

Callers

nothing calls this directly

Calls 4

collect_infoMethod · 0.95
CheckClassClass · 0.85
startMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected