  from django.db import models
  from django.forms import ModelForm
  
  
  temp_storage_dir = tempfile.mkdtemp()
  temp_storage = FileSystemStorage(temp_storage_dir)
  
  
  class Photo(models.Model):
      title = models.CharField(max_length=30)
 
</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'])
temp_storage_dir = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR'])
  from django.db import models
  from django.forms import ModelForm
  
  
temp_storage_dir = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR'])
  temp_storage = FileSystemStorage(temp_storage_dir)
  
  
  class Photo(models.Model):
      title = models.CharField(max_length=30)
keep keep keep keep replace keep keep keep keep keep
 Created import-time test temp dirs in known location

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