Lisandro Dalcin wrote: > Remember that cleanup funtions are registered with "atexit" to run at > Python shutdown... I do not think that is a good place to be tracking > references....
This is OK for Py2.x. However, for Python 3, the right solution would be to put the cleanup code into the official module clear function m_clear(), as described in PEP 3121. http://www.python.org/dev/peps/pep-3121/ Then, the test runner could simply unload the module after running its doctests, but still as part of the test itself. There already is a ticket for general PEP 3121 support (#173), but I extracted this as a new ticket #218, as I find it the most important part, which can be done much sooner. http://trac.cython.org/cython_trac/ticket/173 http://trac.cython.org/cython_trac/ticket/218 Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
