Skip to content

Commit 061e70d

Browse files
committed
Skip test.test_httplib.HTTPSTest.test_networked_good_cert if rustls is used
rustls does not support server host name verification by CN. Only Subject Alternative Names are supported.
1 parent cba10e8 commit 061e70d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_httplib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2098,6 +2098,7 @@ def test_networked_trusted_by_default_cert(self):
20982098
h.close()
20992099
self.assertIn('text/html', content_type)
21002100

2101+
@unittest.skipIf("rustls" in __import__('ssl').OPENSSL_VERSION, "TODO: RUSTPYTHON; rustls does not support server host name verification by CN")
21012102
def test_networked_good_cert(self):
21022103
# We feed the server's cert as a validating cert
21032104
import ssl

0 commit comments

Comments
 (0)