1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Refs #35658 -- Fixed test_create_file_field_from_another_file_field_in_memory_storage when run in reverse.

This commit is contained in:
Mariusz Felisiak 2024-08-15 07:49:20 +02:00 committed by Sarah Boyce
parent 43cdfa8b20
commit a57596e443

View File

@ -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):
"""