8000 Fix matplotlib.testing.util.MiniExpect.expect hangs on Windows · matplotlib/matplotlib@d1ce640 · GitHub
[go: up one dir, main page]

Skip to content

Commit d1ce640

Browse files
committed
Fix matplotlib.testing.util.MiniExpect.expect hangs on Windows
gswin32c expects forward slashes in file paths
1 parent 3dfd380 commit d1ce640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def make_ghostscript_conversion_command():
151151

152152
def do_convert(old, new):
153153
process.expect("GS>")
154-
process.sendline("(%s) run" % old)
154+
process.sendline("(%s) run" % old.replace('\\', '/'))
155155
with open(new, 'wb') as fd:
156156
process.expect(">>showpage, press <return> to continue<<", fd)
157157
process.sendline('')

0 commit comments

Comments
 (0)
0