Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
attempt to fix pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Buck Golemon committed Oct 28, 2014
1 parent 8df94ad commit ef11377
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/functional/simple_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,16 @@ def pipe_output(read, write):
('venv-update'),
env=environ,
stdout=write,
close_fds=True,
close_fds=False,
)

from os import fdopen, close
vupdate.stdout = fdopen(read)
close(write)

out, _ = vupdate.communicate()
# communicate closes the read descriptor

return out


Expand Down

0 comments on commit ef11377

Please sign in to comment.