We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c27a74 commit 4b4bc42Copy full SHA for 4b4bc42
1 file changed
tests/test_api.py
@@ -456,7 +456,7 @@ def test_macos_10_7_import_error():
456
457
458
@pytest.mark.parametrize("empty_value", [None, []])
459
-def test_verify_peercerts_no_cert_chain_raises(monkeypatch):
+def test_verify_peercerts_no_cert_chain_raises(monkeypatch, empty_value):
460
# Simulate no certs returned from peer
461
monkeypatch.setattr(api, "_get_unverified_chain_bytes", lambda sslobj: empty_value)
462
@@ -479,4 +479,3 @@ def __init__(self):
479
api._verify_peercerts(sslobj, server_hostname="example.com")
480
481
assert called is False
482
-
0 commit comments