Skip to content


Subversion checkout URL

You can clone with
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: 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/
1  tests/regressiontests/file_storage/
@@ -86,6 +86,7 @@ class Person(models.Model):
>>> p = Person.objects.create(name="Bob The Builder", mugshot=File(p3.mugshot.file))
+>>> p3.mugshot.file.close()
# Delete all test files
>>> shutil.rmtree(temp_storage_dir)

0 comments on commit 14a6f6c

Please sign in to comment.
Something went wrong with that request. Please try again.