summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gettext.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_gettext.py')
-rw-r--r--Lib/test/test_gettext.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py
index ddad86b..08787d0 100644
--- a/Lib/test/test_gettext.py
+++ b/Lib/test/test_gettext.py
@@ -7,7 +7,6 @@ def test_api_1(localedir, mofile):
print 'test api 1'
# Test basic interface
- os.environ['LANGUAGE'] = 'xx'
print 'installing gettext'
gettext.install('gettext', localedir)
@@ -132,8 +131,10 @@ def setup():
fp = open(MOFILE, 'wb')
fp.write(base64.decodestring(GNU_MO_DATA))
fp.close()
+ os.environ['LANGUAGE'] = 'xx'
def teardown():
+ os.environ['LANGUAGE'] = 'en'
os.unlink(MOFILE)
os.removedirs(LOCALEDIR)