History log of /external/python/cpython2/Lib/test/test_cmd_line_script.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7e59ce8b07127fade6400ea5d66a12ef4ae68475 03-Dec-2015 Martin Panter <vadmium+py@gmail.com> Issue #14285: Do not catch ImportError from __init__.py in runpy

Initialize package before calling get_loader() for __main__, so that we do
not incorrectly handle ImportError from __init__.py. When runpy is used from
the Python CLI, use an internal exception rather than ImportError, to avoid
catching an unexpected ImportError.

Also simplify message formatting: str() is redundant with %s.

Also fix test_dash_m_error_code_is_one() in test_cmd_line_script, which was
failing because the test package was not in the current directlry, rather
the desired ValueError.
/external/python/cpython2/Lib/test/test_cmd_line_script.py
3b30b19e0a7b9adb37a590d257438544ff0b032c 05-Jul-2012 Senthil Kumaran <senthil@uthcode.com> Fix closes issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
/external/python/cpython2/Lib/test/test_cmd_line_script.py
a4f46e129294c686ef1effdd89c459bd9a624e6d 07-Feb-2010 Georg Brandl <georg@python.org> Remove unused imports in test modules.
/external/python/cpython2/Lib/test/test_cmd_line_script.py
aa98058cc44ba20f35c106d20918c6196b737561 24-Jan-2010 Ezio Melotti <ezio.melotti@gmail.com> use assert[Not]In where appropriate
/external/python/cpython2/Lib/test/test_cmd_line_script.py
49868cb686954e57a6ab6bfea2cefeefb86305b1 15-Nov-2009 Nick Coghlan <ncoghlan@gmail.com> Issue #6816: expose the zipfile and directory execution mechanism to Python code via the runpy module. Also consolidated some script execution functionality in the test harness into a helper module and removed some implementation details from the runpy module documentation.
/external/python/cpython2/Lib/test/test_cmd_line_script.py
5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e 01-Jul-2009 Benjamin Peterson <benjamin@python.org> convert usage of fail* to assert*
/external/python/cpython2/Lib/test/test_cmd_line_script.py
d39600e69f9782481ffadf1ada1d1da9857489e8 08-Feb-2009 Nick Coghlan <ncoghlan@gmail.com> Issue 4195: Restore the ability to execute packages with the -m switch (but this time in a way that leaves the import machinery in a valid state). (Original patch by Andi Vajda)
/external/python/cpython2/Lib/test/test_cmd_line_script.py
a2053475bb8a908e1cc80c765e02c98a6f354b19 14-Dec-2008 Nick Coghlan <ncoghlan@gmail.com> Fix several issues relating to access to source code inside zipfiles. Initial work by Alexander Belopolsky. See Misc/NEWS in this checkin for details.
/external/python/cpython2/Lib/test/test_cmd_line_script.py
95287fa951ff5b8f1c38e7a9f5e9134acd59a397 30-Apr-2008 Benjamin Peterson <benjamin@python.org> Remove some from __future__ import with_statements
/external/python/cpython2/Lib/test/test_cmd_line_script.py
ef01d822aaea11ae25f78cb0be32865a5df07620 03-Dec-2007 Nick Coghlan <ncoghlan@gmail.com> Implement PEP 366
/external/python/cpython2/Lib/test/test_cmd_line_script.py
4673e19d8b477ee25159de5dc8f6c9b89cdfaee7 19-Nov-2007 Guido van Rossum <guido@python.org> Fix the OSX failures in this test -- they were due to /tmp being a symlink
to /private/tmp. Adding a call to os.path.realpath() to temp_dir() fixed it.
/external/python/cpython2/Lib/test/test_cmd_line_script.py
089816ba0b54df65dfe473051837b1022cb82e8f 19-Nov-2007 Guido van Rossum <guido@python.org> Make this work stand-alone, too.
/external/python/cpython2/Lib/test/test_cmd_line_script.py
8f6793b5409872dde15da00dca656dd2b63c9a05 19-Nov-2007 Nick Coghlan <ncoghlan@gmail.com> Enable some test_cmd_line_script debugging output to investigate failure on Mac OSX buildbot
/external/python/cpython2/Lib/test/test_cmd_line_script.py
327a39b047e3abcecb08aabe4f4fcb683dd06ef5 18-Nov-2007 Nick Coghlan <ncoghlan@gmail.com> Patch #1739468: Directories and zipfiles containing __main__.py are now executable
/external/python/cpython2/Lib/test/test_cmd_line_script.py