]> granicus.if.org Git - python/commit
Fred wasn't kidding -- there really are docs for the locale module <wink>.
authorTim Peters <tim.peters@gmail.com>
Wed, 23 Jul 2003 00:05:07 +0000 (00:05 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 23 Jul 2003 00:05:07 +0000 (00:05 +0000)
commit36f7e938f287adb4a5c00bb66c5479357dfa9c26
tree4cd94903c7316ab88e896af5a7a68973e8a2484c
parentd1deac06e78fd8fb79018f712dbd70047b5a7fa9
Fred wasn't kidding -- there really are docs for the locale module <wink>.

Obtain the original locale in the documented way.  This way actually
works for me.

Restore the original locale at the end, instead of forcing to "C".

Move the locale fiddling into the test driver instead of doing it as a
side effect of merely importing the module.  I don't know why the test
is mucking with locale (and also added a comment saying so), but it
surely has no justification for doing that as an import side-effect.
Now whenever the locale-changing code executes, the locale-restoring code
will also get run.
Lib/test/test_logging.py