There are two issues here : - One on libzim assuming that the finalize method will be call before deletion of the creator. - `test_libzim.py` not calling the finalize method. For the second point, the more pythonic way to solve this is to use a contextmanager to force the call to finalize in the `__exit__` method.
Activity