mirror of
https://github.com/django/django.git
synced 2025-08-30 23:37:50 +00:00
Fixed #30147 -- Simplified directory creation with os.makedirs(..., exist_ok=True).
This commit is contained in:
parent
ba7a420012
commit
290d8471bb
12 changed files with 43 additions and 66 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue