]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't try to create the directory if it already exists, otherwise the test fails
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 19 Jul 2004 00:08:59 +0000 (00:08 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 19 Jul 2004 00:08:59 +0000 (00:08 +0000)
Lib/test/test_gettext.py

index 4a17230546b098643b2dfed1560dce43de4cbac9..517dfc0f318fae4753915fc5602e0332b0efa324 100644 (file)
@@ -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()