Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…leting 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
  • Loading branch information...
commit 14a6f6cf9a44f0e8f088633d36cc2794c0b27e97 1 parent 756d6f3
@kmtracey kmtracey authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  tests/regressiontests/file_storage/models.py
View
1  tests/regressiontests/file_storage/models.py
@@ -86,6 +86,7 @@ class Person(models.Model):
>>> 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)
Please sign in to comment.
Something went wrong with that request. Please try again.