[pypy-svn] pypy default: Fix a test, and skip another.

arigo commits-noreply at bitbucket.org
Tue Jan 25 17:48:01 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41310:3a1b81c3c0b3
Date: 2011-01-24 16:08 +0100
http://bitbucket.org/pypy/pypy/changeset/3a1b81c3c0b3/

Log:	Fix a test, and skip another.

diff --git a/lib-python/modified-2.7.0/test/test_itertools.py b/lib-python/modified-2.7.0/test/test_itertools.py
--- a/lib-python/modified-2.7.0/test/test_itertools.py
+++ b/lib-python/modified-2.7.0/test/test_itertools.py
@@ -912,6 +912,7 @@
         p = proxy(a)
         self.assertEqual(getattr(p, '__class__'), type(b))
         del a
+        test_support.gc_collect()
         self.assertRaises(ReferenceError, getattr, p, '__class__')
 
     def test_StopIteration(self):
@@ -1334,6 +1335,7 @@
 
 class LengthTransparency(unittest.TestCase):
 
+    @test_support.impl_detail("__length_hint__() API is undocumented")
     def test_repeat(self):
         from test.test_iterlen import len
         self.assertEqual(len(repeat(None, 50)), 50)


More information about the Pypy-commit mailing list