[pypy-svn] pypy fast-forward: Fix a couple of tests in test_set
amauryfa
commits-noreply at bitbucket.org
Tue Jan 11 22:13:46 CET 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40595:9dc9858b2c16
Date: 2011-01-11 22:04 +0100
http://bitbucket.org/pypy/pypy/changeset/9dc9858b2c16/
Log: Fix a couple of tests in test_set
diff --git a/lib-python/modified-2.7.0/test/test_set.py b/lib-python/modified-2.7.0/test/test_set.py
--- a/lib-python/modified-2.7.0/test/test_set.py
+++ b/lib-python/modified-2.7.0/test/test_set.py
@@ -560,6 +560,7 @@
p = weakref.proxy(s)
self.assertEqual(str(p), str(s))
s = None
+ test_support.gc_collect()
self.assertRaises(ReferenceError, str, p)
# C API test only available in a debug build
@@ -591,6 +592,7 @@
s.__init__(self.otherword)
self.assertEqual(s, set(self.word))
+ @test_support.impl_detail()
def test_singleton_empty_frozenset(self):
f = frozenset()
efs = [frozenset(), frozenset([]), frozenset(()), frozenset(''),
More information about the Pypy-commit
mailing list