DAG: Add document graph recompute test

This commit is contained in:
Stefan Tröger
2016-12-26 16:42:49 +01:00
committed by wmayer
parent 665eb63d4c
commit d9adc9cd6c
3 changed files with 81 additions and 3 deletions

View File

@@ -384,8 +384,8 @@ PyObject* DocumentPy::recompute(PyObject * args)
{
if (!PyArg_ParseTuple(args, "")) // convert args: Python->C
return NULL; // NULL triggers exception
getDocumentPtr()->recompute();
Py_Return;
int objectCount = getDocumentPtr()->recompute();
return Py::new_reference_to(Py::Int(objectCount));
}
PyObject* DocumentPy::getObject(PyObject *args)