diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-08-15 07:49:20 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-08-15 08:52:19 +0200 |
| commit | a57596e443ecb67140e1a9fc0f0e87446b2d0174 (patch) | |
| tree | 2932261d3941b79d8967b95c28c994bc3814182a | |
| parent | 43cdfa8b20e567a801b7d0a09ec67ddd062d5ea4 (diff) | |
Refs #35658 -- Fixed test_create_file_field_from_another_file_field_in_memory_storage when run in reverse.
| -rw-r--r-- | tests/file_storage/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py index b486578cdb..bac88235b5 100644 --- a/tests/file_storage/tests.py +++ b/tests/file_storage/tests.py @@ -771,7 +771,8 @@ class DiscardingFalseContentStorageTests(FileStorageTests): class FileFieldStorageTests(TestCase): def tearDown(self): - shutil.rmtree(temp_storage_location) + if os.path.exists(temp_storage_location): + shutil.rmtree(temp_storage_location) def _storage_max_filename_length(self, storage): """ |
