diff --git a/CVE-2022-45061-DoS-by-IDNA-decode.patch b/CVE-2022-45061-DoS-by-IDNA-decode.patch index d30e48b..9c509be 100644 --- a/CVE-2022-45061-DoS-by-IDNA-decode.patch +++ b/CVE-2022-45061-DoS-by-IDNA-decode.patch @@ -69,9 +69,9 @@ Co-authored-by: Gregory P. Smith self.assertEqual(u"pyth\xf6n.org.".encode("idna"), "xn--pythn-mua.org.") + def test_builtin_decode_length_limit(self): -+ with self.assertRaisesRegex(UnicodeError, "too long"): ++ with self.assertRaisesRegexp(UnicodeError, "too long"): + (b"xn--016c"+b"a"*1100).decode("idna") -+ with self.assertRaisesRegex(UnicodeError, "too long"): ++ with self.assertRaisesRegexp(UnicodeError, "too long"): + (b"xn--016c"+b"a"*70).decode("idna") + def test_stream(self):