diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2004-07-19 00:08:59 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2004-07-19 00:08:59 +0000 |
commit | 133f7b7fef5331c4101f41234ed256e69e916f72 (patch) | |
tree | b52d1eb102efca3c9b0d9a18a6d4f21745ab2703 /Lib/test/test_gettext.py | |
parent | 9370be51c68e63c4ffc53ee5ed5055c059c52e3e (diff) | |
download | cpython-133f7b7fef5331c4101f41234ed256e69e916f72.tar.gz |
Don't try to create the directory if it already exists, otherwise the test fails
Diffstat (limited to 'Lib/test/test_gettext.py')
-rw-r--r-- | Lib/test/test_gettext.py | 3 |
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() |