From 615a636d682cf7a3c0c3fc196a925811b4769c300fec19cfd1fe6de7dbcd0299 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 10 Nov 2022 14:35:05 +0000 Subject: [PATCH] Adjust Patches OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=335 --- CVE-2022-45061-DoS-by-IDNA-decode.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):