0
0
mirror of https://github.com/django/django.git synced 2024-11-21 19:09:18 +01: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):
"""