Don't try to create the directory if it already exists, otherwise the test fails

This commit is contained in:
Neal Norwitz 2004-07-19 00:08:59 +00:00
parent 90ee7eb18e
commit a0e0cd3013

View file

@ -66,7 +66,8 @@
class GettextBaseTest(unittest.TestCase):
def setUp(self):
os.makedirs(LOCALEDIR)
if not os.path.isdir(LOCALEDIR):
os.makedirs(LOCALEDIR)
fp = open(MOFILE, 'wb')
fp.write(base64.decodestring(GNU_MO_DATA))
fp.close()