Skip to content

Commit 73af7e2

Browse files
committed
Remove a compat check uncaught by pyupgrade
1 parent a05b542 commit 73af7e2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/functional/testing/test_non_default_mock.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
Test that globus_sdk.testing can accept a non-default requests mock
33
"""
44

5-
import sys
6-
75
import pytest
86
import requests
97
import responses
@@ -19,13 +17,6 @@ def custom_requests_mock():
1917
with responses.RequestsMock() as m:
2018
yield m
2119

22-
if sys.version_info < (3, 7):
23-
# start the default mock again afterwards, so that test fixture teardown doesn't
24-
# double-stop and fail on responses==0.17.0
25-
# use an `if version_info` check to allow pyupgrade to remove this automatically
26-
# in the future
27-
responses.start()
28-
2920

3021
def test_get_last_request_on_empty_custom_mock_returns_none(custom_requests_mock):
3122
assert get_last_request(requests_mock=custom_requests_mock) is None

0 commit comments

Comments
 (0)