Skip to content

Commit

Permalink
Merge pull request #153 from Byvire/close-Popen-without-incompatibility
Browse files Browse the repository at this point in the history
Wait for subprocess to prevent ResourceWarning
  • Loading branch information
dschult committed Aug 4, 2018
2 parents b21f768 + 14580d8 commit c596e7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pygraphviz/agraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1359,6 +1359,7 @@ def _run_prog(self, prog='nop', args=''):

for t in threads:
t.join()
p.wait()

if not data:
raise IOError(b"".join(errors).decode(self.encoding))
Expand Down

0 comments on commit c596e7c

Please sign in to comment.