From 14a6f6cf9a44f0e8f088633d36cc2794c0b27e97 Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Mon, 11 May 2009 16:13:29 +0000 Subject: [PATCH] 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 --- tests/regressiontests/file_storage/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/regressiontests/file_storage/models.py b/tests/regressiontests/file_storage/models.py index 42d16b6382..32af5d7588 100644 --- a/tests/regressiontests/file_storage/models.py +++ b/tests/regressiontests/file_storage/models.py @@ -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)