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:
parent
756d6f3a24
commit
14a6f6cf9a
|
@ -86,6 +86,7 @@ True
|
|||
>>> p3.mugshot.file.open()
|
||||
>>> p = Person.objects.create(name="Bob The Builder", mugshot=File(p3.mugshot.file))
|
||||
>>> p.save()
|
||||
>>> p3.mugshot.file.close()
|
||||
|
||||
# Delete all test files
|
||||
>>> shutil.rmtree(temp_storage_dir)
|
||||
|
|
Loading…
Reference in New Issue