From 290d8471bba35980f3e228f9c171afc40f2550fa Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 31 Jan 2019 07:12:55 -0800 Subject: Fixed #30147 -- Simplified directory creation with os.makedirs(..., exist_ok=True). --- tests/admin_scripts/tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/admin_scripts') diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 8e00a86071..7b41c40199 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -48,8 +48,7 @@ class AdminScriptTestCase(SimpleTestCase): cls.__name__, 'test_project', )) - if not os.path.exists(cls.test_dir): - os.makedirs(cls.test_dir) + os.makedirs(cls.test_dir) with open(os.path.join(cls.test_dir, '__init__.py'), 'w'): pass -- cgit v1.3