summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-01-31 07:12:55 -0800
committerTim Graham <timograham@gmail.com>2019-01-31 12:53:36 -0500
commit290d8471bba35980f3e228f9c171afc40f2550fa (patch)
treea05caec39f83a6d83594d5240fe39c3587316e35 /tests/admin_scripts
parentba7a420012799b26ec9e969d0276d2ccee93c1f5 (diff)
downloaddjango-290d8471bba35980f3e228f9c171afc40f2550fa.tar.gz
Fixed #30147 -- Simplified directory creation with os.makedirs(..., exist_ok=True).
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/tests.py3
1 files changed, 1 insertions, 2 deletions
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