Skip to content

Commit fd6cb87

Browse files
committed
3.6
1 parent baaebf3 commit fd6cb87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integrations/requests/test_requests.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
from unittest import mock
23

34
import pytest
@@ -35,6 +36,10 @@ def test_crumb_capture(sentry_init, capture_events):
3536
)
3637

3738

39+
@pytest.mark.skipif(
40+
sys.version_info < (3, 7),
41+
reason="The response status is not set on the span early enough in 3.6",
42+
)
3843
@pytest.mark.parametrize(
3944
"status_code,level",
4045
[
@@ -53,6 +58,8 @@ def test_crumb_capture_client_error(sentry_init, capture_events, status_code, le
5358
url = f"http://localhost:{PORT}/status/{status_code}" # noqa:E231
5459
response = requests.get(url)
5560

61+
assert response.status_code == status_code
62+
5663
capture_message("Testing!")
5764

5865
(event,) = events

0 commit comments

Comments
 (0)