Skip to content

Commit 268a3e7

Browse files
committed
Explicitly close read and write of Popen to latex
This avoids a warning in the test suite on python3.4. When reading and writing from directly from stdout and stdin of the process they should be explicitly closed afterwards.
1 parent 9e9a3cd commit 268a3e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backends/backend_pgf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ def _cleanup(self):
341341
return
342342
try:
343343
self.latex_stdin_utf8.close()
344+
self.latex.stdout.close()
345+
self.latex.stdin.close()
344346
self.latex.communicate()
345347
self.latex.wait()
346348
except:

0 commit comments

Comments
 (0)