Skip to content

Commit

Permalink
Fix usage of assertRegex in test_ssl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Mar 27, 2024
1 parent 620b10f commit ced2248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4094,7 +4094,7 @@ def test_min_max_version_mismatch(self):
server_hostname=hostname) as s:
with self.assertRaises(ssl.SSLError) as e:
s.connect((HOST, server.port))
self.assertRegex("(alert|ALERT)", str(e.exception))
self.assertRegex(str(e.exception), "(alert|ALERT)")

@requires_tls_version('SSLv3')
def test_min_max_version_sslv3(self):
Expand Down

0 comments on commit ced2248

Please sign in to comment.