summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2004-07-19 00:08:59 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2004-07-19 00:08:59 (GMT)
commita0e0cd3013840299a789f05be239d6ecb6387cdf (patch)
tree221ecc1fe8dc8a0e6d9d8fe8858d8100c4522e04 /Lib/test
parent90ee7eb18eb1d9aecb4798ba06bf324db97b26b5 (diff)
downloadcpython-a0e0cd3013840299a789f05be239d6ecb6387cdf.zip
cpython-a0e0cd3013840299a789f05be239d6ecb6387cdf.tar.gz
cpython-a0e0cd3013840299a789f05be239d6ecb6387cdf.tar.bz2
Don't try to create the directory if it already exists, otherwise the test fails
Diffstat (limited to 'Lib/test')
-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()