Don't try to create the directory if it already exists, otherwise the test fails
This commit is contained in:
parent
90ee7eb18e
commit
a0e0cd3013
|
@ -66,7 +66,8 @@ except:
|
|||
|
||||
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()
|
||||
|
|
Loading…
Reference in New Issue