summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-06-23 20:29:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-06-23 20:29:26 (GMT)
commitf6d31cb8b50a1fa74165f442955b57f9d1f93c86 (patch)
tree497c81fd76a47b31a2691d05fb474209f5dff2fd
parent7ff78257afd8a02d8daac4a499b066339bcaf72e (diff)
downloadcpython-f6d31cb8b50a1fa74165f442955b57f9d1f93c86.zip
cpython-f6d31cb8b50a1fa74165f442955b57f9d1f93c86.tar.gz
cpython-f6d31cb8b50a1fa74165f442955b57f9d1f93c86.tar.bz2
cpython only gc tests
-rw-r--r--Lib/test/test_dict.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py
index 4df7388..29167d0 100644
--- a/Lib/test/test_dict.py
+++ b/Lib/test/test_dict.py
@@ -561,6 +561,7 @@ class DictTest(unittest.TestCase):
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 @@ class DictTest(unittest.TestCase):
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 @@ class DictTest(unittest.TestCase):
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):