Skip to content

Commit 8477652

Browse files
gh-148286: Remove invalid test in test_decodeescape (#153187)
1 parent 0514489 commit 8477652

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

Lib/test/test_capi/test_bytes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,10 @@ def test_decodeescape(self):
222222
self.assertEqual(decodeescape(br'x\xa\xy', 'replace'), b'x??y')
223223
self.assertEqual(decodeescape(br'x\xa\xy', 'ignore'), b'xy')
224224
self.assertRaises(ValueError, decodeescape, b'\\', 'spam')
225-
self.assertEqual(decodeescape(NULL), b'')
226225
self.assertRaises(OverflowError, decodeescape, b'abc', NULL, PY_SSIZE_T_MAX)
227226
self.assertRaises(OverflowError, decodeescape, NULL, NULL, PY_SSIZE_T_MAX)
228227

228+
# INVALID decodeescape(NULL)
229229
# CRASHES decodeescape(b'abc', NULL, -1)
230230
# CRASHES decodeescape(NULL, NULL, 1)
231231

Tools/ubsan/suppressions.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,3 @@ pointer-overflow:Modules/_zstd/decompressor.c
2020

2121
# Modules/_io/stringio.c:350:24: runtime error: addition of unsigned offset to 0x7fd01ec25850 overflowed to 0x7fd01ec2584c
2222
pointer-overflow:Modules/_io/stringio.c
23-
24-
# Objects/bytesobject.c:1190:25: runtime error: applying zero offset to null pointer
25-
pointer-overflow:Objects/bytesobject.c

0 commit comments

Comments
 (0)