8000 Also decode stdout from image verifiers. · matplotlib/matplotlib@3100cd0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3100cd0

Browse files
committed
Also decode stdout from image verifiers.
1 parent 5aafaa4 commit 3100cd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ def verify(filename):
224224
verifier = verifiers.get(extension, None)
225225
if verifier is not None:
226226
cmd = verifier(filename)
227-
pipe = subprocess.Popen(
228-
cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
227+
pipe = subprocess.Popen(cmd, universal_newlines=True,
228+
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
229229
stdout, stderr = pipe.communicate()
230230
errcode = pipe.wait()
231231
if errcode != 0:

0 commit comments

Comments
 (0)
0