14 Oct 2009 14 Oct '09
On Wed, Oct 14, 2009 at 2:45 PM, Neil Schemenauer email@example.com wrote:
On Wed, Oct 14, 2009 at 08:35:28PM -0000, firstname.lastname@example.org 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?