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
1 changed files with 2 additions and 1 deletions

View File

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