[Python-Dev] Better module shutdown procedure
glyph at twistedmatrix.com
Thu Oct 15 00:25:35 CEST 2009
On Wed, Oct 14, 2009 at 2:45 PM, Neil Schemenauer <nas at arctrix.com> wrote:
> On Wed, Oct 14, 2009 at 08:35:28PM -0000, exarkun at twistedmatrix.com wrote:
> > I notice that the patch doesn't include any unit tests for the feature
> > being provided
> That's hard to do although I suppose not impossible. We would be
> trying to test the interpreter shutdown procedure. I suppose on
> plaforms that support it we could fork a subprocess and then inspect
> the output from __del__ methods.
Why not just expose the module-teardown procedure and call it on a module,
then inspect the state there as it's being torn down?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev