commit | a0e0cd3013840299a789f05be239d6ecb6387cdf | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Mon Jul 19 00:08:59 2004 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Mon Jul 19 00:08:59 2004 +0000 |
tree | 221ecc1fe8dc8a0e6d9d8fe8858d8100c4522e04 | |
parent | 90ee7eb18eb1d9aecb4798ba06bf324db97b26b5 [diff] |
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 4a17230..517dfc0 100644 --- a/Lib/test/test_gettext.py +++ b/Lib/test/test_gettext.py
@@ -66,7 +66,8 @@ 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()