Fix bug in not closing file on PyPy

This commit is contained in:
Ram Rachum 2019-04-24 22:32:08 +03:00
parent 2d40225fcc
commit 08aea68d6a

View file

@ -189,7 +189,8 @@ def test_file_output():
return y + x
result = my_function('baba')
assert result == 15
output = path.open().read()
with path.open() as output_file:
output = output_file.read()
assert_output(
output,
(