From d1ce64088d3f2f08e23c7a324927c6b847669abf Mon Sep 17 00:00:00 2001 From: cgohlke Date: Wed, 12 Sep 2012 15:40:05 -0700 Subject: [PATCH] Fix matplotlib.testing.util.MiniExpect.expect hangs on Windows gswin32c expects forward slashes in file paths --- lib/matplotlib/testing/compare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/testing/compare.py b/lib/matplotlib/testing/compare.py index 7d9e1d2d985a..182cd4d58573 100644 --- a/lib/matplotlib/testing/compare.py +++ b/lib/matplotlib/testing/compare.py @@ -151,7 +151,7 @@ def make_ghostscript_conversion_command(): def do_convert(old, new): process.expect("GS>") - process.sendline("(%s) run" % old) + process.sendline("(%s) run" % old.replace('\\', '/')) with open(new, 'wb') as fd: process.expect(">>showpage, press to continue<<", fd) process.sendline('')