Skip to content

Commit 31ebb81

Browse files
authored
Merge pull request #6682 from frenzymadness/pytest8
Fix compatibility with pytest 8
2 parents 0790ea4 + cc23d1c commit 31ebb81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-e .[socks]
2-
pytest>=2.8.0,<=6.2.5
2+
pytest>=2.8.0,<9
33
pytest-cov
44
pytest-httpbin==2.0.0
55
httpbin~=0.10.0

tests/test_requests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ def test_https_warnings(self, nosan_server):
10031003
"SubjectAltNameWarning",
10041004
)
10051005

1006-
with pytest.warns(None) as warning_records:
1006+
with pytest.warns() as warning_records:
10071007
warnings.simplefilter("always")
10081008
requests.get(f"https://localhost:{port}/", verify=ca_bundle)
10091009

0 commit comments

Comments
 (0)