mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #30147 -- Simplified directory creation with os.makedirs(..., exist_ok=True).
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user