[Python-checkins] python/dist/src/Lib/test test_gettext.py,1.9,1.10

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Fri, 19 Jul 2002 17:36:41 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv26594

Modified Files:
	test_gettext.py 
Log Message:
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.


Index: test_gettext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_gettext.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_gettext.py	28 Aug 2001 21:26:33 -0000	1.9
--- test_gettext.py	20 Jul 2002 00:36:38 -0000	1.10
***************
*** 8,12 ****
  
      # Test basic interface
-     os.environ['LANGUAGE'] = 'xx'
  
      print 'installing gettext'
--- 8,11 ----
***************
*** 133,138 ****
--- 132,139 ----
      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)