Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to fix python tests failing with python 3.9 on fedora-rawhide.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 3 Jun 2020 19:12:29 +0000 (21:12 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 3 Jun 2020 19:12:29 +0000 (21:12 +0200)
src/bindings/python/simgrid_python.cpp

index 670be45..66b1c1f 100644 (file)
@@ -134,6 +134,7 @@ PYBIND11_MODULE(simgrid, m)
       .def(
           "on_exit",
           [](py::object fun) {
+            fun.inc_ref(); // FIXME: why is this needed for tests like actor-kill and actor-lifetime?
             simgrid::s4u::this_actor::on_exit([fun](bool /*failed*/) {
               GilScopedAcquire py_context; // need a new context for callback
               try {