File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2929 " Bash(grep:*)" ,
3030 " Bash(mv:*)" ,
3131 " Bash(source .venv/bin/activate)" ,
32+ " Bash(source tox.venv/bin/activate:*)" ,
3233 " Bash(tox:*)" ,
3334 " Bash(tox.venv/bin/tox:*)" ,
3435 " Bash(.tox/*/bin/python:*)" ,
Original file line number Diff line number Diff line change @@ -942,14 +942,12 @@ def target():
942942 assert (main_thread .ident , main_thread .name ) == results .get (timeout = 1 )
943943
944944
945- @pytest .mark .skipif (PY38 , reason = "Flakes a lot on 3.8 in CI." )
946945def test_get_current_thread_meta_failed_to_get_main_thread ():
947946 results = Queue (maxsize = 1 )
948947
949948 def target ():
950- with mock .patch ("threading.current_thread" , side_effect = ["fake thread" ]):
951- with mock .patch ("threading.current_thread" , side_effect = ["fake thread" ]):
952- results .put (get_current_thread_meta ())
949+ with mock .patch ("threading.current_thread" , return_value = "fake thread" ):
950+ results .put (get_current_thread_meta ())
953951
954952 main_thread = threading .main_thread ()
955953
You can’t perform that action at this time.
0 commit comments