mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Guaranteed removal of temporary files during tests.
Dropped the DJANGO_TEST_TEMP_DIR environment variable. Before this change, proper removal depended on the developer passing dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
This commit is contained in:
committed by
Aymeric Augustin
parent
e83aba0e2c
commit
934400759d
@@ -21,7 +21,7 @@ from django.utils._os import upath
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
from django.utils.six.moves import range
|
||||
|
||||
temp_storage_dir = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR'])
|
||||
temp_storage_dir = tempfile.mkdtemp()
|
||||
temp_storage = FileSystemStorage(temp_storage_dir)
|
||||
|
||||
ARTICLE_STATUS = (
|
||||
|
||||
Reference in New Issue
Block a user