mirror of
https://github.com/django/django.git
synced 2025-10-26 23:26:08 +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:
@@ -23,7 +23,7 @@ from .models import FileModel
|
||||
|
||||
|
||||
UNICODE_FILENAME = 'test-0123456789_中文_Orléans.jpg'
|
||||
MEDIA_ROOT = sys_tempfile.mkdtemp()
|
||||
MEDIA_ROOT = sys_tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR'])
|
||||
UPLOAD_TO = os.path.join(MEDIA_ROOT, 'test_upload')
|
||||
|
||||
@override_settings(MEDIA_ROOT=MEDIA_ROOT)
|
||||
|
||||
Reference in New Issue
Block a user