Skip to content

Commit c571c3b

Browse files
Fix usage of assertRegex in test_ssl.py
1 parent 2bba82f commit c571c3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_ssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4036,7 +4036,7 @@ def test_min_max_version_mismatch(self):
40364036
server_hostname=hostname) as s:
40374037
with self.assertRaises(ssl.SSLError) as e:
40384038
s.connect((HOST, server.port))
4039-
self.assertRegex("(alert|ALERT)", str(e.exception))
4039+
self.assertRegex(str(e.exception), "(alert|ALERT)")
40404040

40414041
@requires_tls_version('SSLv3')
40424042
def test_min_max_version_sslv3(self):

0 commit comments

Comments
 (0)