Kaydet (Commit) 65692578 authored tarafından Guido van Rossum's avatar Guido van Rossum

Move the setting of os.environ['LANGUAGE'] to setup(), and reset it to

'en' in teardown().  This way hopefully test_time.py won't fail.
üst d33d4740
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment