From: Arnaud Giersch Date: Thu, 23 Jan 2020 10:02:08 +0000 (+0100) Subject: Fix on_exit callback for python/actor-lifetime. X-Git-Tag: v3.25~81 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4ca5a905c22cea51db3766294902e4a8a606bd88 Fix on_exit callback for python/actor-lifetime. The test is still failing. --- diff --git a/examples/python/actor-lifetime/actor-lifetime.py b/examples/python/actor-lifetime/actor-lifetime.py index cb5ce72537..8a11d06829 100644 --- a/examples/python/actor-lifetime/actor-lifetime.py +++ b/examples/python/actor-lifetime/actor-lifetime.py @@ -14,8 +14,7 @@ class Sleeper: """This actor just sleeps until termination""" def __init__(self, *args): - # sys.exit(1); simgrid.info("Exiting now (done sleeping or got killed).")) - this_actor.on_exit(lambda: print("BAAA")) + this_actor.on_exit(lambda: this_actor.info("Exiting now (done sleeping or got killed).")) def __call__(self): this_actor.info("Hello! I go to sleep.")