File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 77import pytest
88
99import sentry_sdk
10+ from sentry_sdk ._compat import PY38
1011from sentry_sdk .integrations import Integration
1112from sentry_sdk ._queue import Queue
1213from sentry_sdk .utils import (
@@ -901,12 +902,14 @@ def target():
901902 assert (main_thread .ident , main_thread .name ) == results .get (timeout = 1 )
902903
903904
905+ @pytest .mark .skipif (PY38 , "Flakes a lot on 3.8 in CI." )
904906def test_get_current_thread_meta_failed_to_get_main_thread ():
905907 results = Queue (maxsize = 1 )
906908
907909 def target ():
908910 with mock .patch ("threading.current_thread" , side_effect = ["fake thread" ]):
909- results .put (get_current_thread_meta ())
911+ with mock .patch ("threading.current_thread" , side_effect = ["fake thread" ]):
912+ results .put (get_current_thread_meta ())
910913
911914 main_thread = threading .main_thread ()
912915
You can’t perform that action at this time.
0 commit comments