Commit a0e0cd30 authored by Neal Norwitz's avatar Neal Norwitz

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

parent 90ee7eb1
...@@ -66,7 +66,8 @@ except: ...@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment