0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

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.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15602 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Karen Tracey 2011-02-21 12:35:19 +00:00
parent 4419f5fc00
commit f21fc714ea

View File

@ -71,6 +71,7 @@ def file_upload_unicode_name(request):
# upload directory has been seen to choke on unicode # upload directory has been seen to choke on unicode
# filenames on Windows.) # filenames on Windows.)
obj.delete() obj.delete()
os.unlink(full_name)
if response: if response:
return response return response