Merged in msabramo/pytest/test_writeorg_close_tempfile (pull request #136)
test_writeorg: Close a tempfile
This commit is contained in:
commit
21b4280126
|
@ -719,8 +719,9 @@ class TestFDCapture:
|
||||||
scap = cap.snap()
|
scap = cap.snap()
|
||||||
cap.done()
|
cap.done()
|
||||||
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
|
||||||
|
|
||||||
def test_simple_resume_suspend(self, tmpfile):
|
def test_simple_resume_suspend(self, tmpfile):
|
||||||
with saved_fd(1):
|
with saved_fd(1):
|
||||||
|
|
Loading…
Reference in New Issue