1. Luke Plant
  2. django

Commits

kmtr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 6d095bc

[1.2.X] Fixed #15362: Added explicit deletion of file to test, needed now since files are no longer auto-deleted when a referencing object is deleted. Thanks mila.

r15602 from trunk.

  • Participants
  • Parent commits fea2c3f
  • Branches releases/1.2.X

Comments (0)

Files changed (1)

File tests/regressiontests/file_uploads/views.py

View file
     # upload directory has been seen to choke on unicode
     # filenames on Windows.)
     obj.delete()
+    os.unlink(full_name)
 
     if response:
         return response