Skip to content

Commit

Permalink
Merge pull request #6682 from frenzymadness/pytest8
Browse files Browse the repository at this point in the history
Fix compatibility with pytest 8
  • Loading branch information
sigmavirus24 committed Apr 11, 2024
2 parents 0790ea4 + cc23d1c commit 31ebb81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-e .[socks]
pytest>=2.8.0,<=6.2.5
pytest>=2.8.0,<9
pytest-cov
pytest-httpbin==2.0.0
httpbin~=0.10.0
Expand Down
2 changes: 1 addition & 1 deletion tests/test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ def test_https_warnings(self, nosan_server):
"SubjectAltNameWarning",
)

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

Expand Down

0 comments on commit 31ebb81

Please sign in to comment.