summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-07-20 00:36:38 (GMT)
committerGuido van Rossum <guido@python.org>2002-07-20 00:36:38 (GMT)
commit65692578b7c934148b0bb6b4bddc4def21d008e2 (patch)
treee7d269150beea3247e6c125de4033c785da35d8a /Lib
parentd33d47401d96d3486f83f274e0318aaafd5a854d (diff)
downloadcpython-65692578b7c934148b0bb6b4bddc4def21d008e2.zip
cpython-65692578b7c934148b0bb6b4bddc4def21d008e2.tar.gz
cpython-65692578b7c934148b0bb6b4bddc4def21d008e2.tar.bz2
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.
Diffstat (limited to 'Lib')
-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)