From: Neal Norwitz Date: Mon, 19 Jul 2004 00:08:59 +0000 (+0000) Subject: Don't try to create the directory if it already exists, otherwise the test fails X-Git-Tag: v2.4a2~194 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0e0cd3013840299a789f05be239d6ecb6387cdf;p=thirdparty%2FPython%2Fcpython.git Don't try to create the directory if it already exists, otherwise the test fails --- diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py index 4a17230546b0..517dfc0f318f 100644 --- a/Lib/test/test_gettext.py +++ b/Lib/test/test_gettext.py @@ -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()