Skip to content

Commit

Permalink
Refs #35658 -- Fixed test_create_file_field_from_another_file_field_i…
Browse files Browse the repository at this point in the history
…n_memory_storage when run in reverse.
  • Loading branch information
felixxm authored and sarahboyce committed Aug 15, 2024
1 parent 43cdfa8 commit a57596e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/file_storage/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,8 @@ def test_custom_storage_discarding_empty_content(self):

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):
"""
Expand Down

0 comments on commit a57596e

Please sign in to comment.