Skip to content

Commit 7632448

Browse files
committed
only in gevent is this a problem
1 parent 8845c72 commit 7632448

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/test_transport.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
from pytest_localserver.http import WSGIServer
1515
from werkzeug.wrappers import Request, Response
1616

17+
try:
18+
import gevent
19+
except ImportError:
20+
gevent = None
21+
1722
import sentry_sdk
1823
from sentry_sdk import (
1924
Client,
@@ -126,7 +131,11 @@ def mock_transaction_envelope(span_count):
126131
@pytest.mark.parametrize("compression_level", (0, 9, None))
127132
@pytest.mark.parametrize(
128133
"compression_algo",
129-
("gzip", "br", "<invalid>", None) if PY37 else ("gzip", "<invalid>", None),
134+
(
135+
("gzip", "br", "<invalid>", None)
136+
if PY37 or gevent is None
137+
else ("gzip", "<invalid>", None)
138+
),
130139
)
131140
@pytest.mark.parametrize("http2", [True, False] if PY38 else [False])
132141
def test_transport_works(

0 commit comments

Comments
 (0)