From 830570cba4ac9041f5c30c6a752b68b14b9e8f60ec7d35a82884009cf06190d5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 18 May 2025 21:56:25 +0000 Subject: [PATCH] Fix patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python312?expand=0&rev=127 --- CVE-2025-4516-DecodeError-handler.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CVE-2025-4516-DecodeError-handler.patch b/CVE-2025-4516-DecodeError-handler.patch index e8f7e12..1ea8989 100644 --- a/CVE-2025-4516-DecodeError-handler.patch +++ b/CVE-2025-4516-DecodeError-handler.patch @@ -135,7 +135,7 @@ Index: Python-3.12.10/Lib/test/test_codeccallbacks.py Index: Python-3.12.10/Lib/test/test_codecs.py =================================================================== --- Python-3.12.10.orig/Lib/test/test_codecs.py 2025-05-17 12:00:00.357214034 +0000 -+++ Python-3.12.10/Lib/test/test_codecs.py 2025-05-18 19:13:33.194243474 +0000 ++++ Python-3.12.10/Lib/test/test_codecs.py 2025-05-18 21:53:06.831835783 +0000 @@ -1196,23 +1196,39 @@ check(br"[\1010]", b"[A0]") check(br"[\x41]", b"[A]") @@ -153,7 +153,7 @@ Index: Python-3.12.10/Lib/test/test_codecs.py check(b"\\" + b, b"\\" + b) - with self.assertWarns(DeprecationWarning): + with self.assertWarnsRegex(DeprecationWarning, -+ r"invalid escape sequence '\\%c'" % (i-32)): ++ r"invalid escape sequence"): check(b"\\" + b.upper(), b"\\" + b.upper()) - with self.assertWarns(DeprecationWarning): + with self.assertWarnsRegex(DeprecationWarning, @@ -199,7 +199,7 @@ Index: Python-3.12.10/Lib/test/test_codecs.py if b.upper() not in b'UN': - with self.assertWarns(DeprecationWarning): + with self.assertWarnsRegex(DeprecationWarning, -+ r'invalid escape sequence "\\%c"' % (i-32)): ++ 'invalid escape sequence'): check(b"\\" + b.upper(), "\\" + chr(i-32)) - with self.assertWarns(DeprecationWarning): + with self.assertWarnsRegex(DeprecationWarning,