Skip to content

Commit 01f90dc

Browse files
committed
.
1 parent 0425773 commit 01f90dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import pytest
88

99
import sentry_sdk
10+
from sentry_sdk._compat import PY38
1011
from sentry_sdk.integrations import Integration
1112
from sentry_sdk._queue import Queue
1213
from 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.")
904906
def 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

0 commit comments

Comments
 (0)