diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-06-27 22:44:51 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-06-27 22:44:51 +0000 |
commit | 02d7806a81d8060b1753a2494144a44e4733c181 (patch) | |
tree | d62205b718711365f4389414fd051027f0bf9b0d /Lib/test/test_tuple.py | |
parent | 5a6214afe2e454a9d1247c53db643c28114d5d1e (diff) | |
download | cpython-git-02d7806a81d8060b1753a2494144a44e4733c181.tar.gz |
Merged revisions 82303 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82303 | benjamin.peterson | 2010-06-27 17:40:26 -0500 (Sun, 27 Jun 2010) | 1 line
mark tracking tests as implementation details
........
Diffstat (limited to 'Lib/test/test_tuple.py')
-rw-r--r-- | Lib/test/test_tuple.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_tuple.py b/Lib/test/test_tuple.py index 53065bb204..7d89e63217 100644 --- a/Lib/test/test_tuple.py +++ b/Lib/test/test_tuple.py @@ -96,6 +96,7 @@ class TupleTest(seq_tests.CommonTest): gc.collect() self.assertTrue(gc.is_tracked(t), t) + @support.cpython_only def test_track_literals(self): # Test GC-optimization of tuple literals x, y, z = 1.5, "a", [] @@ -136,16 +137,19 @@ class TupleTest(seq_tests.CommonTest): self._tracked(tp(tuple([obj]) for obj in [x, y, z])) self._tracked(tuple(tp([obj]) for obj in [x, y, z])) + @support.cpython_only def test_track_dynamic(self): # Test GC-optimization of dynamically constructed tuples. self.check_track_dynamic(tuple, False) + @support.cpython_only def test_track_subtypes(self): # Tuple subtypes must always be tracked class MyTuple(tuple): pass self.check_track_dynamic(MyTuple, True) + @support.cpython_only def test_bug7466(self): # Trying to untrack an unfinished tuple could crash Python self._not_tracked(tuple(gc.collect() for i in range(101))) |