]> granicus.if.org Git - python/commit
Issue #14285: Do not catch exceptions initializing any ancestor package
authorMartin Panter <vadmium+py@gmail.com>
Thu, 10 Dec 2015 06:47:06 +0000 (06:47 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Thu, 10 Dec 2015 06:47:06 +0000 (06:47 +0000)
commit7dda421bfff887da9a84e99c37ef1b0ef9f3cde9
treee39c07f91360571424cb92263f3f34434c974ec4
parenta29eb08fb97fff461b62682da4ee9ac6ea8db5bf
Issue #14285: Do not catch exceptions initializing any ancestor package

The previous fix only handled the case of the parent package of __main__
failing to initialize.

Also make the "Error while finding spec" formatting slightly more appealing,
and document and test that the module name must be absolute.
Doc/library/runpy.rst
Doc/using/cmdline.rst
Lib/runpy.py
Lib/test/test_cmd_line_script.py
Lib/test/test_runpy.py