@@ -59,23 +59,23 @@ def test_run_pyscript_with_odd_file_names(base_app):
59
59
"""
60
60
python_script = utils .quote_string ('nothingweird.py' )
61
61
out , err = run_cmd (base_app , "run_pyscript {}" .format (python_script ))
62
- assert "No such file or directory: 'nothingweird.py'" in err [0 ]
62
+ assert "Error reading script file 'nothingweird.py'" in err [0 ]
63
63
64
64
python_script = utils .quote_string ('has spaces.py' )
65
65
out , err = run_cmd (base_app , "run_pyscript {}" .format (python_script ))
66
- assert "No such file or directory: 'has spaces.py'" in err [0 ]
66
+ assert "Error reading script file 'has spaces.py'" in err [0 ]
67
67
68
68
# For remaining tests, mock input to get us passed the warning about not ending in .py
69
69
input_mock = mock .MagicMock (name = 'input' , return_value = '1' )
70
70
builtins .input = input_mock
71
71
72
72
python_script = utils .quote_string ('"is_double_quoted.py"' )
73
73
out , err = run_cmd (base_app , "run_pyscript {}" .format (python_script ))
74
- assert "No such file or directory: '\" is_double_quoted.py\" '" in err [1 ]
74
+ assert "Error reading script file '\" is_double_quoted.py\" '" in err [1 ]
75
75
76
76
python_script = utils .quote_string ("'is_single_quoted.py'" )
77
77
out , err = run_cmd (base_app , "run_pyscript {}" .format (python_script ))
78
- assert 'No such file or directory: " \' is_single_quoted.py\' "' in err [1 ]
78
+ assert "Error reading script file '' is_single_quoted.py''" in err [1 ]
79
79
80
80
def test_run_pyscript_with_exception (base_app , request ):
81
81
test_dir = os .path .dirname (request .module .__file__ )
0 commit comments