Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54869 - sandbox-branches/bhy/py3k/libs/python/test
From: divinekid_at_[hidden]
Date: 2009-07-10 13:42:02


Author: bhy
Date: 2009-07-10 13:42:02 EDT (Fri, 10 Jul 2009)
New Revision: 54869
URL: http://svn.boost.org/trac/boost/changeset/54869

Log:
fix upcast test case
Text files modified:
   sandbox-branches/bhy/py3k/libs/python/test/upcast.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox-branches/bhy/py3k/libs/python/test/upcast.cpp
==============================================================================
--- sandbox-branches/bhy/py3k/libs/python/test/upcast.cpp (original)
+++ sandbox-branches/bhy/py3k/libs/python/test/upcast.cpp 2009-07-10 13:42:02 EDT (Fri, 10 Jul 2009)
@@ -13,7 +13,7 @@
 {
     PyTypeObject o;
     Y y;
- BOOST_TEST(&boost::python::upcast<PyObject>(&o)->ob_refcnt == &o.ob_refcnt);
- BOOST_TEST(&boost::python::upcast<PyObject>(&y)->ob_refcnt == &y.ob_refcnt);
+ BOOST_TEST(&Py_REFCNT(boost::python::upcast<PyObject>(&o)) == &Py_REFCNT(&o));
+ BOOST_TEST(&Py_REFCNT(boost::python::upcast<PyObject>(&y)) == &Py_REFCNT(&y));
     return boost::report_errors();
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk