mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-01-23 02:14:04 +00:00
Fix bug in not closing file on PyPy
This commit is contained in:
parent
2d40225fcc
commit
08aea68d6a
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue