[pypy-commit] pypy reflex-support: adding some more ROOT-based tests (CINT only) for completeness
wlav
noreply at buildbot.pypy.org
Thu Mar 21 02:32:25 CET 2013
Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r62602:4661b4e901ee
Date: 2013-03-20 17:38 -0700
http://bitbucket.org/pypy/pypy/changeset/4661b4e901ee/
Log: adding some more ROOT-based tests (CINT only) for completeness
diff --git a/pypy/module/cppyy/test/test_cint.py b/pypy/module/cppyy/test/test_cint.py
--- a/pypy/module/cppyy/test/test_cint.py
+++ b/pypy/module/cppyy/test/test_cint.py
@@ -523,3 +523,19 @@
#assert gbl.aap == "aap"
assert gbl.noot == 1
#assert gbl.mies == 2.0
+
+ def test08_opaque_pointer_passing(self):
+ """Test passing around of opaque pointers"""
+
+ import cppyy
+
+ # TODO: figure out CObject (see also test_advanced.py)
+
+ s = cppyy.gbl.TString("Hello World!")
+ #cobj = cppyy.as_cobject(s)
+ addr = cppyy.addressof(s)
+
+ #assert s == cppyy.bind_object(cobj, s.__class__)
+ #assert s == cppyy.bind_object(cobj, "TString")
+ assert s == cppyy.bind_object(addr, s.__class__)
+ assert s == cppyy.bind_object(addr, "TString")
More information about the pypy-commit
mailing list