Merged in msabramo/pytest/test_writeorg_close_tempfile (pull request #136)

test_writeorg: Close a tempfile
This commit is contained in:
holger krekel 2014-04-02 09:30:55 +02:00
commit 21b4280126
1 changed files with 3 additions and 2 deletions

View File

@ -719,8 +719,9 @@ class TestFDCapture:
scap = cap.snap()
cap.done()
assert scap == totext(data1)
stmp = open(tmpfile.name, 'rb').read()
assert stmp == data2
with open(tmpfile.name, 'rb') as stmp_file:
stmp = stmp_file.read()
assert stmp == data2
def test_simple_resume_suspend(self, tmpfile):
with saved_fd(1):