Skip to content

Commit dfc5f87

Browse files
committed
Merge pull request #108 from open-source-parsers/quote-spaces
quote cmdline arg
2 parents 0f6884f + 1a4dc3a commit dfc5f87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: test/runjsontests.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import print_function
2+
from glob import glob
23
import sys
34
import os
4-
import os.path
5-
from glob import glob
5+
import pipes
66
import optparse
77

88
VALGRIND_CMD = 'valgrind --tool=memcheck --leak-check=yes --undef-value-errors=yes '
@@ -56,7 +56,7 @@ def runAllTests( jsontest_executable_path, input_dir = None,
5656
options = is_json_checker_test and '--json-checker' or ''
5757
pipe = os.popen( "%s%s %s %s" % (
5858
valgrind_path, jsontest_executable_path, options,
59-
input_path) )
59+
pipes.quote(input_path)))
6060
process_output = pipe.read()
6161
status = pipe.close()
6262
if is_json_checker_test:

0 commit comments

Comments
 (0)