]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-148286: Remove invalid test in `test_decodeescape` (#153187)
authorStan Ulbrych <stan@python.org>
Mon, 6 Jul 2026 14:47:55 +0000 (16:47 +0200)
committerGitHub <noreply@github.com>
Mon, 6 Jul 2026 14:47:55 +0000 (16:47 +0200)
Lib/test/test_capi/test_bytes.py
Tools/ubsan/suppressions.txt

index 410ebab729c2cf410c50c02cb8700a22ee3f2e4e..c591e986bbce35f7b8c67e11813f2bec762bf854 100644 (file)
@@ -222,10 +222,10 @@ class CAPITest(unittest.TestCase):
         self.assertEqual(decodeescape(br'x\xa\xy', 'replace'), b'x??y')
         self.assertEqual(decodeescape(br'x\xa\xy', 'ignore'), b'xy')
         self.assertRaises(ValueError, decodeescape, b'\\', 'spam')
-        self.assertEqual(decodeescape(NULL), b'')
         self.assertRaises(OverflowError, decodeescape, b'abc', NULL, PY_SSIZE_T_MAX)
         self.assertRaises(OverflowError, decodeescape, NULL, NULL, PY_SSIZE_T_MAX)
 
+        # INVALID decodeescape(NULL)
         # CRASHES decodeescape(b'abc', NULL, -1)
         # CRASHES decodeescape(NULL, NULL, 1)
 
index a00e256b3336182dfdae7310cb41642f8ab991dc..e3679bc421f4205abaf04503600188b1340b51e9 100644 (file)
@@ -20,6 +20,3 @@ pointer-overflow:Modules/_zstd/decompressor.c
 
 # Modules/_io/stringio.c:350:24: runtime error: addition of unsigned offset to 0x7fd01ec25850 overflowed to 0x7fd01ec2584c
 pointer-overflow:Modules/_io/stringio.c
-
-# Objects/bytesobject.c:1190:25: runtime error: applying zero offset to null pointer
-pointer-overflow:Objects/bytesobject.c