Code

Ticket #11032: 11032.diff

File 11032.diff, 494 bytes (added by bthomas, 5 years ago)

Close file in last regression test

Line 
1Index: tests/regressiontests/file_storage/models.py
2===================================================================
3--- tests/regressiontests/file_storage/models.py        (revision 10740)
4+++ tests/regressiontests/file_storage/models.py        (working copy)
5@@ -86,6 +86,7 @@
6 >>> p3.mugshot.file.open()
7 >>> p = Person.objects.create(name="Bob The Builder", mugshot=File(p3.mugshot.file))
8 >>> p.save()
9+>>> p3.mugshot.file.close()
10 
11 # Delete all test files
12 >>> shutil.rmtree(temp_storage_dir)