[Python-checkins] python/dist/src/Lib/test test_gettext.py, 1.16, 1.17

nnorwitz at users.sourceforge.net nnorwitz at users.sourceforge.net
Mon Jul 19 02:09:01 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23043/Lib/test
Modified Files:
	test_gettext.py 
Log Message:
Don't try to create the directory if it already exists, otherwise the test fails
Index: test_gettext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_gettext.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** test_gettext.py	20 May 2003 17:28:54 -0000	1.16
--- test_gettext.py	19 Jul 2004 00:08:59 -0000	1.17
***************
*** 67,71 ****
 class GettextBaseTest(unittest.TestCase):
 def setUp(self):
! os.makedirs(LOCALEDIR)
 fp = open(MOFILE, 'wb')
 fp.write(base64.decodestring(GNU_MO_DATA))
--- 67,72 ----
 class GettextBaseTest(unittest.TestCase):
 def setUp(self):
! if not os.path.isdir(LOCALEDIR):
! os.makedirs(LOCALEDIR)
 fp = open(MOFILE, 'wb')
 fp.write(base64.decodestring(GNU_MO_DATA))


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /