]> granicus.if.org Git - python/commit
bpo-34783: Fix test_nonexisting_script() (GH-9896)
authorVictor Stinner <vstinner@redhat.com>
Mon, 15 Oct 2018 21:50:55 +0000 (23:50 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Oct 2018 21:50:55 +0000 (23:50 +0200)
commitea75187c68b374bb839f1172f310b206044bc3e5
tree7a66ed107e6cd08533f619f60752c19710fe5030
parent43a5bd7b458f0ad2d62b00b033d025689d48d591
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).
Lib/test/test_cmd_line_script.py