]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34783: Fix test_nonexisting_script() (GH-9896)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 15 Oct 2018 22:30:05 +0000 (15:30 -0700)
committerGitHub <noreply@github.com>
Mon, 15 Oct 2018 22:30:05 +0000 (15:30 -0700)
commit350aeab8127da551fcd0090230575b7aabff03c9
treea220c9b3adf84fdd908e9e1c3381565e528ae75d
parent802de12d99d16e621537d454eac942d2f448afee
bpo-34783: Fix test_nonexisting_script() (GH-9896)

Fix test_cmd_line_script.test_nonexisting_script(): the test must not
rely on sys.executable, since main.c uses config->program which can
be different than sys.executable in many cases (for example, on macOS
when using the framework).
(cherry picked from commit ea75187c68b374bb839f1172f310b206044bc3e5)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/test_cmd_line_script.py