diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-12-12 19:18:27 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-12-12 19:18:27 +0000 |
commit | 35656d3f0fc57c1140c2181c620df0b692da75ec (patch) | |
tree | 04233a410467227108280df20a0b72849c214fe6 /Lib/test/test_tuple.py | |
parent | 12be5972be6b83911589d390b57d64f52749cb4a (diff) | |
download | cpython-35656d3f0fc57c1140c2181c620df0b692da75ec.tar.gz |
Merged revisions 76763 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76763 | antoine.pitrou | 2009-12-12 20:13:08 +0100 (sam., 12 déc. 2009) | 7 lines
Issue #7466: segmentation fault when the garbage collector is called
in the middle of populating a tuple. Patch by Florent Xicluna.
(note: no NEWS entry for trunk since the bug was introduced in 2.7/3.1)
........
Diffstat (limited to 'Lib/test/test_tuple.py')
-rw-r--r-- | Lib/test/test_tuple.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_tuple.py b/Lib/test/test_tuple.py index c37adc2545..53065bb204 100644 --- a/Lib/test/test_tuple.py +++ b/Lib/test/test_tuple.py @@ -146,6 +146,9 @@ class TupleTest(seq_tests.CommonTest): pass self.check_track_dynamic(MyTuple, True) + def test_bug7466(self): + # Trying to untrack an unfinished tuple could crash Python + self._not_tracked(tuple(gc.collect() for i in range(101))) def test_main(): support.run_unittest(TupleTest) |