summaryrefslogtreecommitdiff
path: root/tests/model_forms
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2015-02-21 18:56:36 +0100
committerAymeric Augustin <aymeric.augustin@oscaro.com>2015-02-23 16:55:26 +0100
commit934400759de817471ff37d736686201d7ae34e82 (patch)
tree834ceac28e66f7d81350a79a7f23fdb71e6cb1f4 /tests/model_forms
parente83aba0e2cce16cd1b32d1c172239a4e20867e95 (diff)
downloaddjango-934400759de817471ff37d736686201d7ae34e82.tar.gz
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.
Diffstat (limited to 'tests/model_forms')
-rw-r--r--tests/model_forms/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_forms/models.py b/tests/model_forms/models.py
index ac3c6062a2..2cfe523175 100644
--- a/tests/model_forms/models.py
+++ b/tests/model_forms/models.py
@@ -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 = (