Fixed #11032: close() a file explictly open()'d in a test, so that deleting the file tree it is in doesn't fail on Windows. Thanks bthomas for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10741 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Karen Tracey 2009-05-11 16:13:29 +00:00
parent 756d6f3a24
commit 14a6f6cf9a
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ True
>>> p3.mugshot.file.open() >>> p3.mugshot.file.open()
>>> p = Person.objects.create(name="Bob The Builder", mugshot=File(p3.mugshot.file)) >>> p = Person.objects.create(name="Bob The Builder", mugshot=File(p3.mugshot.file))
>>> p.save() >>> p.save()
>>> p3.mugshot.file.close()
# Delete all test files # Delete all test files
>>> shutil.rmtree(temp_storage_dir) >>> shutil.rmtree(temp_storage_dir)