Permalink
Browse files

Fixed #15362: Added explicit deletion of file to test, needed now sin…

…ce 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
  • Loading branch information...
1 parent 4419f5f commit f21fc714eadcb90e1b61c0d86b34843f761516ea @kmtracey kmtracey committed Feb 21, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 tests/regressiontests/file_uploads/views.py
@@ -71,6 +71,7 @@ def file_upload_unicode_name(request):
# upload directory has been seen to choke on unicode
# filenames on Windows.)
obj.delete()
+ os.unlink(full_name)
if response:
return response

0 comments on commit f21fc71

Please sign in to comment.