test_writeorg: Close a tempfile
--HG-- branch : test_writeorg_close_tempfile
This commit is contained in:
parent
e061ace099
commit
7301981f32
|
@ -747,8 +747,9 @@ class TestFDCapture:
|
||||||
f = cap.done()
|
f = cap.done()
|
||||||
scap = f.read()
|
scap = f.read()
|
||||||
assert scap == totext(data1)
|
assert scap == totext(data1)
|
||||||
stmp = open(tmpfile.name, 'rb').read()
|
with open(tmpfile.name, 'rb') as stmp_file:
|
||||||
assert stmp == data2
|
stmp = stmp_file.read()
|
||||||
|
assert stmp == data2
|
||||||
|
|
||||||
|
|
||||||
class TestStdCapture:
|
class TestStdCapture:
|
||||||
|
|
Loading…
Reference in New Issue