diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-06-27 22:40:26 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-06-27 22:40:26 (GMT) |
commit | a70e91c28471e3949d78acb4c54c59b136ee1c9d (patch) | |
tree | f780d8e390ed271251f043ccde1ca1e52f4ffadf | |
parent | b96fbb8d0058efa0b1b8d6adbe875488cb03e4fc (diff) | |
download | cpython-a70e91c28471e3949d78acb4c54c59b136ee1c9d.zip cpython-a70e91c28471e3949d78acb4c54c59b136ee1c9d.tar.gz cpython-a70e91c28471e3949d78acb4c54c59b136ee1c9d.tar.bz2 |
mark tracking tests as implementation details
-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 2e34642..4d2137f 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) + @test_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])) + @test_support.cpython_only def test_track_dynamic(self): # Test GC-optimization of dynamically constructed tuples. self.check_track_dynamic(tuple, False) + @test_support.cpython_only def test_track_subtypes(self): # Tuple subtypes must always be tracked class MyTuple(tuple): pass self.check_track_dynamic(MyTuple, True) + @test_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))) |