Skip to content

Commit 6acb8d6

Browse files
committed
Align mmap boundary regression with Python 3.14.8
Include the matching upstream GH-158027 test-data correction: use an integer RHS so the unchanged IndexError assertion checks index bounds after conversion. Preserve the runtime assignment and storage guards. Assisted-by: OpenAI Codex:model identifier unavailable
1 parent f165f99 commit 6acb8d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/test/test_mmap.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_basic(self):
7373

7474
# Shouldn't crash on boundary (Issue #5292)
7575
self.assertRaises(IndexError, m.__getitem__, len(m))
76-
self.assertRaises(IndexError, m.__setitem__, len(m), b'\0')
76+
self.assertRaises(IndexError, m.__setitem__, len(m), 0)
7777

7878
# Modify the file's content
7979
m[0] = b'3'[0]

0 commit comments

Comments
 (0)