Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #14285: Do not catch ImportError from __init__.py in runpy | Martin Panter | 2015-12-03 | 1 | -0/+24 |
| | | | | | | | | | | | | | 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. | ||||
* | #11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch ↵ | Ezio Melotti | 2013-03-16 | 1 | -17/+20 |
| | | | | by Thomas Wouters. | ||||
* | use assert[Not]In where appropriate | Ezio Melotti | 2010-01-23 | 1 | -10/+10 |
| | |||||
* | Correctly escape arbitrary error message text in the runpy unit tests | Nick Coghlan | 2009-11-18 | 1 | -2/+2 |
| | |||||
* | Allow for backslashes in file paths passed to the regex engine | Nick Coghlan | 2009-11-16 | 1 | -0/+2 |
| | |||||
* | Issue #6816: expose the zipfile and directory execution mechanism to Python ↵ | Nick Coghlan | 2009-11-15 | 1 | -22/+142 |
| | | | | 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. | ||||
* | Add test for runpy.run_module package execution and use something other than ↵ | Nick Coghlan | 2009-11-07 | 1 | -5/+32 |
| | | | | logging as the example of a non-executable package | ||||
* | convert usage of fail* to assert* | Benjamin Peterson | 2009-06-30 | 1 | -33/+33 |
| | |||||
* | Implement PEP 366 | Nick Coghlan | 2007-12-03 | 1 | -7/+26 |
| | |||||
* | Fix bug 1764407 - the -i switch now does the right thing when using the -m ↵ | Nick Coghlan | 2007-08-25 | 1 | -15/+13 |
| | | | | switch | ||||
* | Revert misguided attempt at fixing incompatibility between -m and -i ↵ | Nick Coghlan | 2007-08-25 | 1 | -29/+21 |
| | | | | switches (better fix coming soon) | ||||
* | Make test_runpy re-entrant. | Brett Cannon | 2007-08-23 | 1 | -1/+2 |
| | |||||
* | Fix an incompatibility between the -i and -m command line switches as ↵ | Nick Coghlan | 2007-07-24 | 1 | -21/+29 |
| | | | | reported on python-dev by PJE - runpy.run_module now leaves any changes it makes to the sys module intact after the function terminates | ||||
* | Tweak runpy test to do a better job of confirming that sys has been ↵ | Nick Coghlan | 2007-07-24 | 1 | -3/+5 |
| | | | | manipulated correctly | ||||
* | Correctly cleanup sys.modules after executing runpy relative import | Nick Coghlan | 2007-07-23 | 1 | -6/+6 |
| | | | | | | tests Restore Python 2.4 ImportError when attempting to execute a package (as imports cannot be guaranteed to work properly if you try it) | ||||
* | Add explicit relative import tests for runpy.run_module | Nick Coghlan | 2007-07-22 | 1 | -5/+66 |
| | |||||
* | Revert the __module_name__ changes made in rev 47142. We'll revisit this in ↵ | Nick Coghlan | 2006-07-06 | 1 | -13/+5 |
| | | | | Python 2.6 | ||||
* | Make full module name available as __module_name__ even when __name__ is set ↵ | Nick Coghlan | 2006-06-28 | 1 | -5/+13 |
| | | | | to something else (like '__main__') | ||||
* | Whitespace normalization. | Tim Peters | 2006-03-15 | 1 | -3/+3 |
| | |||||
* | Don't try to explicitly set path in runpy package tests (tests were broken ↵ | Nick Coghlan | 2006-03-15 | 1 | -1/+0 |
| | | | | on Windows) | ||||
* | Don't let cleanup errors mask real errors in the runpy tests | Nick Coghlan | 2006-03-15 | 1 | -5/+18 |
| | |||||
* | Make test_runpy close all references to test modules before trying to delete ↵ | Nick Coghlan | 2006-03-15 | 1 | -8/+11 |
| | | | | the underlying files | ||||
* | Implement PEP 338 which has been marked as accepted by GvR | Nick Coghlan | 2006-03-15 | 1 | -0/+157 |