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,6 +66,7 @@ except:
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))