Restoring the locale needs to be handled in a way that is safe even if an exception is raised:

- Wrap the call to 'remember()' in a 'try:...finally:'

- Or clear the locale in the 'tearDown' method.

In either case, it would be simpler to call 'locale.resetlocale(locale.LC_ALL)'.