  and where files should be stored.
  """
  
  import random
  import tempfile
  
  from django.db import models
  from django.core.files.storage import FileSystemStorage
  
 
</s> remove temp_storage_location = tempfile.mkdtemp()
 </s> add temp_storage_location = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR']) </s> remove temp_storage_dir = tempfile.mkdtemp()
 </s> add temp_storage_dir = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR']) </s> remove     temp_storage_dir = tempfile.mkdtemp()
 </s> add     temp_storage_dir = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR'])
import os
  and where files should be stored.
  """
  
import os
  import random
  import tempfile
  
  from django.db import models
  from django.core.files.storage import FileSystemStorage
  
keep keep add keep keep keep keep keep keep
 Created import-time test temp dirs in known location

Refs #17215. In the same spirit as 5de31cb8cb. 
tests/file_storage/models.py