mirror of
https://github.com/boostorg/python.git
synced 2026-01-27 19:12:16 +00:00
Merged 2009 GSoC work from sandbox-branches/bhy/py3k branch back into trunk.
[SVN r56305]
This commit is contained in:
4
test/upcast.cpp
Executable file → Normal file
4
test/upcast.cpp
Executable file → Normal file
@@ -13,7 +13,7 @@ int main()
|
||||
{
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user