File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
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 77import pytest
88
99import sentry_sdk
10- from sentry_sdk ._compat import PY38
1110from sentry_sdk .integrations import Integration
1211from sentry_sdk ._queue import Queue
1312from sentry_sdk .utils import (
@@ -942,14 +941,12 @@ def target():
942941 assert (main_thread .ident , main_thread .name ) == results .get (timeout = 1 )
943942
944943
945- @pytest .mark .skipif (PY38 , reason = "Flakes a lot on 3.8 in CI." )
946944def test_get_current_thread_meta_failed_to_get_main_thread ():
947945 results = Queue (maxsize = 1 )
948946
949947 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 ())
948+ with mock .patch ("threading.current_thread" , return_value = "fake thread" ):
949+ results .put (get_current_thread_meta ())
953950
954951 main_thread = threading .main_thread ()
955952
You can’t perform that action at this time.
0 commit comments