[issue9868] test_locale leaves locale changed

Michael Foord report at bugs.python.org
Thu Sep 23 16:21:48 CEST 2010

Michael Foord <michael at voidspace.org.uk> added the comment:

Destructors are special cased in many languages and tearDown is not a destructor. More importantly though the change you suggest would be backwards incompatible.

The 'correct' way to do this in new code is to use cleanUp functions which *are* called even if an exception is raised during setUp.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list