From a0e0cd3013840299a789f05be239d6ecb6387cdf Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 19 Jul 2004 00:08:59 +0000 Subject: [PATCH] Don't try to create the directory if it already exists, otherwise the test fails --- Lib/test/test_gettext.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py index 4a17230546..517dfc0f31 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() -- 2.50.1