(_times)
| 25 | |
| 26 | @pytest.mark.parametrize("_times", range(2)) |
| 27 | def 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 | |
| 46 | def method(): |
nothing calls this directly
no test coverage detected