浏览代码

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",
         )