Skip to content

Commit fbf0a25

Browse files
sampsoncencukou
andauthored
Update Lib/test/test_itertools.py
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent cb4cc82 commit fbf0a25

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Lib/test/test_itertools.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -755,10 +755,7 @@ def keys():
755755
next(g) # must pass with address sanitizer
756756

757757
def test_grouper_next_reentrant_eq_does_not_crash(self):
758-
# regression test for gh-145678: _grouper_next() did not protect
759-
# gbo->currkey / igo->tgtkey before calling PyObject_RichCompareBool,
760-
# so a reentrant __eq__ that advanced the parent groupby could free
761-
# those objects while they were still being compared (use-after-free).
758+
# regression test for gh-145678
762759
class Key:
763760
def __init__(self, val, do_advance):
764761
self.val = val

0 commit comments

Comments
 (0)