test_writeorg: Close a tempfile

--HG--
branch : test_writeorg_close_tempfile
This commit is contained in:
Marc Abramowitz 2014-03-31 08:25:35 -07:00
parent e061ace099
commit 7301981f32
1 changed files with 3 additions and 2 deletions

View File

@ -747,7 +747,8 @@ class TestFDCapture:
f = cap.done()
scap = f.read()
assert scap == totext(data1)
stmp = open(tmpfile.name, 'rb').read()
with open(tmpfile.name, 'rb') as stmp_file:
stmp = stmp_file.read()
assert stmp == data2