summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_gettext.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py
index 4a17230..517dfc0 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()