diff --git a/test/runjsontests.py b/test/runjsontests.py index 2defb53ae..9422d57d9 100644 --- a/test/runjsontests.py +++ b/test/runjsontests.py @@ -1,8 +1,8 @@ from __future__ import print_function -from glob import glob import sys import os -import pipes +import os.path +from glob import glob import optparse VALGRIND_CMD = 'valgrind --tool=memcheck --leak-check=yes --undef-value-errors=yes ' @@ -54,9 +54,9 @@ def runAllTests( jsontest_executable_path, input_dir = None, is_json_checker_test = (input_path in test_jsonchecker) or expect_failure print('TESTING:', input_path, end=' ') options = is_json_checker_test and '--json-checker' or '' - pipe = os.popen( "%s%s %s %s" % ( + pipe = os.popen( '%s%s %s "%s"' % ( valgrind_path, jsontest_executable_path, options, - pipes.quote(input_path))) + input_path) ) process_output = pipe.read() status = pipe.close() if is_json_checker_test: