[pypy-svn] r18732 - pypy/dist/pypy/rpython/ootypesystem/test
arigo at codespeak.net
arigo at codespeak.net
Tue Oct 18 11:53:29 CEST 2005
Author: arigo
Date: Tue Oct 18 11:53:29 2005
New Revision: 18732
Modified:
pypy/dist/pypy/rpython/ootypesystem/test/test_ooclean.py
Log:
Adding a test from test_rclass that passes.
Modified: pypy/dist/pypy/rpython/ootypesystem/test/test_ooclean.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/test/test_ooclean.py (original)
+++ pypy/dist/pypy/rpython/ootypesystem/test/test_ooclean.py Tue Oct 18 11:53:29 2005
@@ -142,6 +142,16 @@
res = interpret(dummyfn, [], type_system='ootype')
assert res == 6
+def test_prebuilt_instances_with_void():
+ def marker():
+ return 42
+ a = EmptyBase()
+ a.nothing_special = marker
+ def dummyfn():
+ return a.nothing_special()
+ res = interpret(dummyfn, [], type_system='ootype')
+ assert res == 42
+
class HasClassAttr(object):
a = 3
def f(self, n):
More information about the Pypy-commit
mailing list