Merge pull request #2016 from jdmarch/quotes-for-test-runner

BUG: test runner fails in Windows if filenames contain spaces.
This commit is contained in:
Thomas Kluyver 2012-06-24 07:34:39 -07:00
commit a81f55cc92

View File

@ -372,6 +372,10 @@ class IPTester(object):
# reliably in win32.
# What types of problems are you having. They may be related to
# running Python in unboffered mode. BG.
for ndx, arg in enumerate(self.call_args):
# Enclose in quotes if necessary and legal
if ' ' in arg and os.path.isfile(arg) and arg[0] != '"':
self.call_args[ndx] = '"%s"' % arg
return os.system(' '.join(self.call_args))
else:
def _run_cmd(self):