]> granicus.if.org Git - python/commitdiff
make sure to close file
authorBenjamin Peterson <benjamin@python.org>
Thu, 30 Apr 2009 00:06:33 +0000 (00:06 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 30 Apr 2009 00:06:33 +0000 (00:06 +0000)
Lib/test/test_aifc.py

index 9fec392f84ffb5f53cf8e8e6835f65ab200d31d2..0aed908005ac1688ae23b79e057ff3be679b5c76 100644 (file)
@@ -27,7 +27,7 @@ class AIFCTest(unittest.TestCase):
     def test_skipunknown(self):
         #Issue 2245
         #This file contains chunk types aifc doesn't recognize.
-        f = aifc.open(self.sndfilepath)
+        self.f = aifc.open(self.sndfilepath)
 
     def test_params(self):
         f = self.f = aifc.open(self.sndfilepath)