We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a8fab commit 2139ebaCopy full SHA for 2139eba
tests/test_utils.py
@@ -906,15 +906,14 @@ def test_get_current_thread_meta_failed_to_get_main_thread():
906
907
def target():
908
with mock.patch("threading.current_thread", side_effect=["fake thread"]):
909
- with mock.patch("threading.current_thread", side_effect=["fake thread"]):
910
- results.put(get_current_thread_meta())
+ results.put(get_current_thread_meta())
911
912
main_thread = threading.main_thread()
913
914
thread = threading.Thread(target=target)
915
thread.start()
916
thread.join()
917
- assert (main_thread.ident, main_thread.name) == results.get(timeout=5)
+ assert (main_thread.ident, main_thread.name) == results.get(timeout=1)
918
919
920
@pytest.mark.parametrize(
0 commit comments