[Python-checkins] r82303 - python/trunk/Lib/test/test_tuple.py

benjamin.peterson python-checkins at python.org
Mon Jun 28 00:40:26 CEST 2010


Author: benjamin.peterson
Date: Mon Jun 28 00:40:26 2010
New Revision: 82303

Log:
mark tracking tests as implementation details

Modified:
   python/trunk/Lib/test/test_tuple.py

Modified: python/trunk/Lib/test/test_tuple.py
==============================================================================
--- python/trunk/Lib/test/test_tuple.py	(original)
+++ python/trunk/Lib/test/test_tuple.py	Mon Jun 28 00:40:26 2010
@@ -96,6 +96,7 @@
         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 @@
         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)))


More information about the Python-checkins mailing list