@@ -59,23 +59,23 @@ def test_run_pyscript_with_odd_file_names(base_app):
5959 """
6060 python_script = utils .quote_string ('nothingweird.py' )
6161 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 ]
6363
6464 python_script = utils .quote_string ('has spaces.py' )
6565 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 ]
6767
6868 # For remaining tests, mock input to get us passed the warning about not ending in .py
6969 input_mock = mock .MagicMock (name = 'input' , return_value = '1' )
7070 builtins .input = input_mock
7171
7272 python_script = utils .quote_string ('"is_double_quoted.py"' )
7373 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 ]
7575
7676 python_script = utils .quote_string ("'is_single_quoted.py'" )
7777 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 ]
7979
8080def test_run_pyscript_with_exception (base_app , request ):
8181 test_dir = os .path .dirname (request .module .__file__ )
0 commit comments