[issue9868] test_locale leaves locale changed

Hirokazu Yamamoto report at bugs.python.org
Thu Sep 23 16:50:28 CEST 2010

Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp> added the comment:

> Destructors are special cased in many languages and tearDown is not a
> destructor.

Yes, but they are similar.

> 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.

I must admit I'm not familiar with unittest framework. Probably
better way exists.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list