[pypy-svn] pypy default: * skip as impl detail the fact that CPython doesn't allow some
arigo
commits-noreply at bitbucket.org
Sat Jan 29 19:35:04 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r41454:96e8390e720d
Date: 2011-01-29 19:32 +0100
http://bitbucket.org/pypy/pypy/changeset/96e8390e720d/
Log: * skip as impl detail the fact that CPython doesn't allow some
weakrefs, whereas PyPy does.
* skip for now the test about __sizeof__, relying on
sys.getsizeof().
diff --git a/lib-python/modified-2.7.0/test/test_descr.py b/lib-python/modified-2.7.0/test/test_descr.py
--- a/lib-python/modified-2.7.0/test/test_descr.py
+++ b/lib-python/modified-2.7.0/test/test_descr.py
@@ -1740,7 +1740,7 @@
raise MyException
for name, runner, meth_impl, ok, env in specials:
- if name == '__length_hint__':
+ if name == '__length_hint__' or name == '__sizeof__':
if not test_support.check_impl_detail():
continue
@@ -1983,7 +1983,9 @@
except TypeError, msg:
self.assertTrue(str(msg).find("weak reference") >= 0)
else:
- self.fail("weakref.ref(no) should be illegal")
+ if test_support.check_impl_detail(pypy=False):
+ self.fail("weakref.ref(no) should be illegal")
+ #else: pypy supports taking weakrefs to some more objects
class Weak(object):
__slots__ = ['foo', '__weakref__']
yes = Weak()
More information about the Pypy-commit
mailing list