Commit 4354f4e1 authored by Brian Curtin's avatar Brian Curtin

Merged revisions 86003 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86003 | brian.curtin | 2010-10-30 19:03:45 -0500 (Sat, 30 Oct 2010) | 2 lines

  Fix ResourceWarning. Use context manager to properly close file.
........
parent d56b97e2
...@@ -540,6 +540,7 @@ class IEEEFormatTestCase(unittest.TestCase): ...@@ -540,6 +540,7 @@ class IEEEFormatTestCase(unittest.TestCase):
@requires_IEEE_754 @requires_IEEE_754
def test_format_testfile(self): def test_format_testfile(self):
with open(format_testfile) as testfile:
for line in open(format_testfile): for line in open(format_testfile):
if line.startswith('--'): if line.startswith('--'):
continue continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment