summaryrefslogtreecommitdiff
path: root/tests/model_fields
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-06-23 14:51:53 +0200
committerClaude Paroz <claude@2xlibre.net>2014-06-23 14:54:25 +0200
commit809362518d6dbb7ca989b32ed97b39f6156563b9 (patch)
tree859cbd8ab49b179103afb95e0708f6c4cf4c21c7 /tests/model_fields
parent1d9596025e53a33763d9dbb61e7dda015ec60b25 (diff)
Created import-time test temp dirs in known location
Refs #17215. In the same spirit as 5de31cb8cb.
Diffstat (limited to 'tests/model_fields')
-rw-r--r--tests/model_fields/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py
index 0222f9a3df..30140a7231 100644
--- a/tests/model_fields/models.py
+++ b/tests/model_fields/models.py
@@ -194,7 +194,7 @@ if Image:
attr_class = TestImageFieldFile
# Set up a temp directory for file storage.
- temp_storage_dir = tempfile.mkdtemp()
+ temp_storage_dir = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR'])
temp_storage = FileSystemStorage(temp_storage_dir)
temp_upload_to_dir = os.path.join(temp_storage.location, 'tests')