Skip to content

Commit ce6b056

Browse files
committed
Trim the comment on the frame-count rejection test
1 parent 7c23d37 commit ce6b056

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Lib/test/test_profiling/test_sampling_profiler/test_binary_format.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,10 +1090,8 @@ def test_open_rejects_frame_count_larger_than_file(self):
10901090
max_frames = (size - frame_off) // self.MIN_FRAME_ENTRY_SIZE
10911091
self._patch_footer_count(filename, self.FTR_OFF_FRAMES, 0xFFFFFFFF)
10921092

1093-
# 0xFFFFFFFF frames exceed the file on every platform. On a 32-bit
1094-
# build it also overflows the allocation size, so the size_t overflow
1095-
# guard (OverflowError) fires before the count-vs-file-size guard
1096-
# (ValueError); either rejection is correct.
1093+
# On a 32-bit build this count overflows the allocation size, so the
1094+
# size_t overflow guard (OverflowError) fires before the count check.
10971095
with self.assertRaises((ValueError, OverflowError)) as cm:
10981096
with BinaryReader(filename):
10991097
pass

0 commit comments

Comments
 (0)