mirror of
https://github.com/django/django.git
synced 2025-10-30 09:06:13 +00:00
[1.6.x] Created import-time test temp dirs in known location
Refs #17215. In the same spirit as5de31cb8cb. Backport of809362518dfrom master.
This commit is contained in:
@@ -132,7 +132,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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user