[Python-checkins] r82183 - python/trunk/Lib/test/test_dict.py

benjamin.peterson python-checkins at python.org
Wed Jun 23 22:29:27 CEST 2010


Author: benjamin.peterson
Date: Wed Jun 23 22:29:26 2010
New Revision: 82183

Log:
cpython only gc tests

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

Modified: python/trunk/Lib/test/test_dict.py
==============================================================================
--- python/trunk/Lib/test/test_dict.py	(original)
+++ python/trunk/Lib/test/test_dict.py	Wed Jun 23 22:29:26 2010
@@ -561,6 +561,7 @@
         gc.collect()
         self.assertTrue(gc.is_tracked(t), t)
 
+    @test_support.cpython_only
     def test_track_literals(self):
         # Test GC-optimization of dict literals
         x, y, z, w = 1.5, "a", (1, None), []
@@ -578,6 +579,7 @@
         self._tracked({1: {}})
         self._tracked({1: set()})
 
+    @test_support.cpython_only
     def test_track_dynamic(self):
         # Test GC-optimization of dynamically-created dicts
         class MyObject(object):
@@ -641,6 +643,7 @@
         d.update([(x, y), (z, w)])
         self._tracked(d)
 
+    @test_support.cpython_only
     def test_track_subtypes(self):
         # Dict subtypes are always tracked
         class MyDict(dict):


More information about the Python-checkins mailing list