Ticket #11032: 11032.diff

File 11032.diff, 494 bytes (added by Bob Thomas, 15 years ago)

Close file in last regression test

  • tests/regressiontests/file_storage/models.py

     
    8686>>> p3.mugshot.file.open()
    8787>>> p = Person.objects.create(name="Bob The Builder", mugshot=File(p3.mugshot.file))
    8888>>> p.save()
     89>>> p3.mugshot.file.close()
    8990
    9091# Delete all test files
    9192>>> shutil.rmtree(temp_storage_dir)
Back to Top