We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d6cf7e commit 5fa431dCopy full SHA for 5fa431d
tests/test_utils.py
@@ -942,14 +942,12 @@ def target():
942
assert (main_thread.ident, main_thread.name) == results.get(timeout=1)
943
944
945
-@pytest.mark.skipif(PY38, reason="Flakes a lot on 3.8 in CI.")
946
def test_get_current_thread_meta_failed_to_get_main_thread():
947
results = Queue(maxsize=1)
948
949
def target():
950
- with mock.patch("threading.current_thread", side_effect=["fake thread"]):
951
952
- results.put(get_current_thread_meta())
+ with mock.patch("threading.current_thread", return_value="fake thread"):
+ results.put(get_current_thread_meta())
953
954
main_thread = threading.main_thread()
955
0 commit comments