소스 검색

Fixed #35472 -- Used temporary directory in test_imagefield.NoReadTests.

Sarah Boyce 10 달 전
부모
커밋
7e39ae5c8c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tests/model_fields/models.py

+ 1 - 1
tests/model_fields/models.py

@@ -383,7 +383,7 @@ if Image:
 
         mugshot = models.ImageField(
             upload_to="tests",
-            storage=NoReadFileSystemStorage(),
+            storage=NoReadFileSystemStorage(temp_storage_dir),
             width_field="mugshot_width",
             height_field="mugshot_height",
         )