mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
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:
commit
a81f55cc92
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user