summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2009-05-11 16:13:29 +0000
committerKaren Tracey <kmtracey@gmail.com>2009-05-11 16:13:29 +0000
commit14a6f6cf9a44f0e8f088633d36cc2794c0b27e97 (patch)
treeeade7eeac29f202342902e8baace92b31fb85a91
parent756d6f3a241fdc3fbe5fd20d5c62c8a709e25927 (diff)
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
-rw-r--r--tests/regressiontests/file_storage/models.py1
1 files changed, 1 insertions, 0 deletions
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)