[pypy-commit] pypy cppyy-dev: pointers to unknown classes now work (but are otherwise not usable)

wlav pypy.commits at gmail.com
Wed Nov 13 12:58:46 EST 2019


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: cppyy-dev
Changeset: r98047:3d97f3c4624e
Date: 2019-11-07 19:45 -0800
http://bitbucket.org/pypy/pypy/changeset/3d97f3c4624e/

Log:	pointers to unknown classes now work (but are otherwise not usable)

diff --git a/pypy/module/_cppyy/test/test_fragile.py b/pypy/module/_cppyy/test/test_fragile.py
--- a/pypy/module/_cppyy/test/test_fragile.py
+++ b/pypy/module/_cppyy/test/test_fragile.py
@@ -35,7 +35,7 @@
 
         assert fragile.B == fragile.B
         assert fragile.B().check() == ord('B')
-        raises(AttributeError, getattr, fragile.B().gime_no_such(), "__cppdecl__")
+        assert not fragile.B().gime_no_such()
 
         assert fragile.C == fragile.C
         assert fragile.C().check() == ord('C')


More information about the pypy-commit mailing list