diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-01-31 07:12:55 -0800 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2019-01-31 12:53:36 -0500 |
commit | 290d8471bba35980f3e228f9c171afc40f2550fa (patch) | |
tree | a05caec39f83a6d83594d5240fe39c3587316e35 /tests/admin_scripts | |
parent | ba7a420012799b26ec9e969d0276d2ccee93c1f5 (diff) | |
download | django-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.py | 3 |
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 |