<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_cmd_line_script.py, branch v3.7.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_cmd_line_script.py?h=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_cmd_line_script.py?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-10-15T22:30:05Z</updated>
<entry>
<title>bpo-34783: Fix test_nonexisting_script() (GH-9896)</title>
<updated>2018-10-15T22:30:05Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-10-15T22:30:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=350aeab8127da551fcd0090230575b7aabff03c9'/>
<id>urn:sha1:350aeab8127da551fcd0090230575b7aabff03c9</id>
<content type='text'>
Fix test_cmd_line_script.test_nonexisting_script(): the test must not
rely on sys.executable, since main.c uses config-&gt;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 &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>bpo-34783:  Disable test_nonexisting_script for macOS framework builds (GH-9831) (GH-9832)</title>
<updated>2018-10-13T04:07:01Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-10-13T04:07:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5d8ef8bc3f7307cd15f9d82ad4846e82b498ae88'/>
<id>urn:sha1:5d8ef8bc3f7307cd15f9d82ad4846e82b498ae88</id>
<content type='text'>
With macOS framework builds, test case test_nonexisting_script in
test_nonexisting_script fails because the test case assumes that
the file name in sys.executable will appear in the error message.
For macOS framework builds, sys.executable is the file name of the
stub launcher and its file name bears no relationship to the file
name of the actual python executable.  For now, skip the test in
this case.
(cherry picked from commit f6c29a65e2a6da5c0014c868cf963c975b74e72b)

Co-authored-by: Ned Deily &lt;nad@python.org&gt;</content>
</entry>
<entry>
<title>bpo-34783: Add test_cmd_line_script.test_nonexisting_script() (GH-9535)</title>
<updated>2018-09-24T15:28:23Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-09-24T15:28:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7a26222d7caa507fc46119ba9246f163502eb1fd'/>
<id>urn:sha1:7a26222d7caa507fc46119ba9246f163502eb1fd</id>
<content type='text'>
Make sure that "./python script.py" does not crash if the script
file doesn't exist.
(cherry picked from commit a46467ff198c42c8f34768c7be4b4562f6f44736)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>bpo-33053: -m now adds *starting* directory to sys.path (GH-6231) (#6236)</title>
<updated>2018-03-25T13:43:50Z</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2018-03-25T13:43:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ee3784594b33c72c3fdca6a71892d22f14045ab6'/>
<id>urn:sha1:ee3784594b33c72c3fdca6a71892d22f14045ab6</id>
<content type='text'>
Historically, -m added the empty string as sys.path
zero, meaning it resolved imports against the current
working directory, the same way -c and the interactive
prompt do.

This changes the sys.path initialisation to add the
*starting* working directory as sys.path[0] instead,
such that changes to the working directory while the
program is running will have no effect on imports
when using the -m switch.

(cherry picked from commit d5d9e02dd3c6df06a8dd9ce75ee9b52976420a8b)</content>
</entry>
<entry>
<title>bpo-30436: Raise ModuleNotFoundError for importlib.util.find_spec() when parent isn't a package (GH-1899)</title>
<updated>2017-06-14T21:34:50Z</updated>
<author>
<name>Milan Oberkirch</name>
<email>zvyn@oberkirch.org</email>
</author>
<published>2017-06-14T21:34:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8c3f05e9f0f0b30a3d4a2433e92471794d8258af'/>
<id>urn:sha1:8c3f05e9f0f0b30a3d4a2433e92471794d8258af</id>
<content type='text'>
Previously AttributeError was raised, but that's not very reflective of the fact that the requested module can't be found since the specified parent isn't actually a package.</content>
</entry>
<entry>
<title>bpo-29723: Consistently configure sys.path[0] (#575)</title>
<updated>2017-03-12T10:38:32Z</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2017-03-12T10:38:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d2977a3ae2cc6802921b1e3b6e9d13fcfbda872d'/>
<id>urn:sha1:d2977a3ae2cc6802921b1e3b6e9d13fcfbda872d</id>
<content type='text'>
Directory and zipfile execution previously added
the parent directory of the directory or zipfile
as sys.path[0] and then subsequently overwrote
it with the directory or zipfile itself.

This caused problems in isolated mode, as it
overwrote the "stdlib as a zip archive" entry
in sys.path, as the parent directory was
never added.

The attempted fix to that issue in bpo-29319
created the opposite problem in *non*-isolated
mode, by potentially leaving the parent
directory on sys.path instead of overwriting it.

This change fixes the root cause of the problem
by removing the whole "add-and-overwrite" dance
for sys.path[0], and instead simply never adds
the parent directory to sys.path in the first
place.</content>
</entry>
<entry>
<title>Issue #25677: Merge SyntaxError caret positioning from 3.5</title>
<updated>2016-12-19T06:46:01Z</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2016-12-19T06:46:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=619555d77bba05c71d9ef0a1c29ec53a17ebe2ca'/>
<id>urn:sha1:619555d77bba05c71d9ef0a1c29ec53a17ebe2ca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #25677: Correct syntax error caret for indented blocks.</title>
<updated>2016-12-11T00:18:36Z</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2016-12-11T00:18:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ca3263c50c3b3a3719d2ec3ee7b30b8c669dcb19'/>
<id>urn:sha1:ca3263c50c3b3a3719d2ec3ee7b30b8c669dcb19</id>
<content type='text'>
Based on patch by Michael Layzell.
</content>
</entry>
<entry>
<title>Issue #15767: Use ModuleNotFoundError.</title>
<updated>2016-09-07T23:56:15Z</updated>
<author>
<name>Eric Snow</name>
<email>ericsnowcurrently@gmail.com</email>
</author>
<published>2016-09-07T23:56:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=46f97b85a8ce9ae67b6e4bc32e94f7827df7bab7'/>
<id>urn:sha1:46f97b85a8ce9ae67b6e4bc32e94f7827df7bab7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #27487: Merge runpy warning from 3.5</title>
<updated>2016-08-21T05:07:35Z</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2016-08-21T05:07:35Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f9ed528fafafda147f20f345195ced23b141ace9'/>
<id>urn:sha1:f9ed528fafafda147f20f345195ced23b141ace9</id>
<content type='text'>
</content>
</entry>
</feed>
