From 7e39ae5c8cf4c6601a4f47b72914349481c5331b Mon Sep 17 00:00:00 2001 From: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> Date: Wed, 22 May 2024 19:29:05 +0200 Subject: [PATCH] Fixed #35472 -- Used temporary directory in test_imagefield.NoReadTests. --- tests/model_fields/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py index 18a6fdbc1c8..652c808b402 100644 --- a/tests/model_fields/models.py +++ b/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", )