summaryrefslogtreecommitdiff
path: root/Lib/test/test_gettext.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_gettext.py')
-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 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()