8000 fix: Fix tests under pypy · etherscan-io/sentry-python@1aec03b · GitHub
[go: up one dir, main page]

Skip to content

Commit 1aec03b

Browse files
committed
fix: Fix tests under pypy
1 parent 8eb373b commit 1aec03b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/utils/test_contextvars.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import pytest
21
import random
32
import time
43

4+
import pytest
55
import gevent
66

77

@@ -20,7 +20,13 @@ def test_gevent_is_not_patched():
2020
@pytest.mark.parametrize("with_gevent", [True, False])
2121
def test_leaks(with_gevent):
2222
if with_gevent:
23-
gevent.monkey.patch_all()
23+
try:
24+
gevent.monkey.patch_all()
25+
except Exception as e:
26+
if "_RLock__owner" in str(e):
27+
pytest.skip(reason="https://github.com/gevent/gevent/issues/1380")
28+
else:
29+
raise
2430

2531
import threading
2632

0 commit comments

Comments
 (0)
0