Commit 14a6f6cf authored by Karen Tracey's avatar Karen Tracey
Browse files

Fixed #11032: close() a file explictly open()'d in a test, so that deleting...

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
parent 756d6f3a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)