Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | merge w/ 3.3 | Brett Cannon | 2013-02-03 | 1 | -6/+0 |
|\ | |||||
| * | Way too many places create modules temporarily that never set | Brett Cannon | 2013-02-03 | 1 | -6/+0 |
| | | | | | | | | | | | | __loader__ for this test to succeed without a major changes. It also doesn't test the original issue of modules imported by Py_Initialize() having __loader__ set (the rest of the test covers that). | ||||
* | | merge | Brett Cannon | 2013-02-03 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | pyexpat/xml.parsers.expat create their errors and model modules from | Brett Cannon | 2013-02-03 | 1 | -0/+4 |
| | | | | | | | | | | | | scratch. This means they do not set __loader__ by default. This is acceptable under importlib/PEP 302 definitions, so relax the test that was trying to apply this universally. | ||||
* | | Merge w/ 3.3 more fixes thanks to issue #17098 | Brett Cannon | 2013-02-01 | 1 | -0/+9 |
|\ \ | |/ | |||||
| * | Issue #17098: Be more stringent of setting __loader__ on early imported | Brett Cannon | 2013-02-01 | 1 | -0/+6 |
| | | | | | | | | modules. Also made test more rigorous. | ||||
* | | merge with 3.3 | Brett Cannon | 2013-02-01 | 1 | -7/+10 |
|\ \ | |/ | |||||
| * | Add a test for fix of issue #17098 | Brett Cannon | 2013-02-01 | 1 | -1/+12 |
| | | |||||
* | | Merge from 3.3 for fix for issue #16730 | Brett Cannon | 2013-01-11 | 1 | -0/+35 |
|\ \ | |/ | |||||
| * | Issue #16730: Don't raise an exception in | Brett Cannon | 2013-01-11 | 1 | -0/+35 |
| | | | | | | | | | | | | | | | | importlib.machinery.FileFinder when the directory has become unreadable or a file. This brings semantics in line with Python 3.2 import. Reported and diagnosed by David Pritchard. | ||||
| * | Issue #16793. Replace deprecated unittest asserts with modern counterparts. | Serhiy Storchaka | 2012-12-27 | 1 | -1/+1 |
| | | |||||
* | | Replace IOError with OSError (#16715) | Andrew Svetlov | 2012-12-25 | 2 | -8/+8 |
| | | |||||
* | | Issue #15627: This is simply an update to the name of a new method recently ↵ | Eric Snow | 2012-12-05 | 1 | -2/+2 |
| | | | | | | | | | | | | added to importlib.abc.SourceLoader. | ||||
* | | Do a better job of preserving the state of sys.modules. | Barry Warsaw | 2012-11-20 | 1 | -1/+6 |
|\ \ | |/ | |||||
| * | Do a better job of preserving the state of sys.modules. | Barry Warsaw | 2012-11-20 | 1 | -1/+6 |
| | | |||||
* | | - Issue #16514: Fix regression causing a traceback when sys.path[0] is None | Barry Warsaw | 2012-11-20 | 1 | -4/+21 |
|\ \ | |/ | | | | | (actually, any non-string or non-bytes type). | ||||
| * | - Issue #16514: Fix regression causing a traceback when sys.path[0] is None | Barry Warsaw | 2012-11-20 | 1 | -4/+21 |
| | | | | | | | | (actually, any non-string or non-bytes type). | ||||
* | | Issue #15627: Add the compile_source() method to | Brett Cannon | 2012-11-18 | 1 | -6/+9 |
| | | | | | | | | | | | | | | importlib.abc.SourceLoader. This provides an easy hook into the import system to allow for source transformations, AST optimizations, etc. | ||||
* | | Issue #15641: Clean up deprecated classes from importlib | Andrew Svetlov | 2012-11-05 | 2 | -519/+4 |
| | | | | | | | | Patch by Taras Lyapun. | ||||
* | | Clean up some warnings in test suite output. | Nadeem Vawda | 2012-10-13 | 1 | -1/+1 |
|/ | |||||
* | Closes issue #15111: Calling __import__ with a module specified in | Brett Cannon | 2012-10-10 | 1 | -1/+14 |
| | | | | | fromlist which causes its own ImportError (e.g. the module tries to import a non-existent module) should have that exception propagate. | ||||
* | Issue #15794: Relax a test case due to the deadlock detection's ↵ | Antoine Pitrou | 2012-08-28 | 1 | -4/+18 |
| | | | | conservativeness. | ||||
* | Issue #15316: Let exceptions raised during imports triggered by the | Brett Cannon | 2012-08-24 | 1 | -0/+38 |
| | | | | | | | | | | | | | | | fromlist of __import__ propagate. The problem previously was that if something listed in fromlist didn't exist then that's okay. The fix for that was too broad in terms of catching ImportError. The trick with the solution to this issue is that the proper refactoring of import thanks to importlib doesn't allow for a way to distinguish (portably) between an ImportError because finders couldn't find a loader, or a loader raised the exception. In Python 3.4 the hope is to introduce a new exception (e.g. ModuleNotFound) to make it clean to differentiate why ImportError was raised. | ||||
* | Close #14846: Handle a sys.path entry going away | Nick Coghlan | 2012-08-20 | 1 | -3/+12 |
| | |||||
* | Issue #15576: Allow extension modules to be a package's __init__ | Brett Cannon | 2012-08-10 | 7 | -26/+27 |
| | | | | | module again. Also took the opportunity to stop accidentally exporting _imp.extension_suffixes() as public. | ||||
* | Issue #15502: Finish bringing importlib.abc in line with the current | Brett Cannon | 2012-08-10 | 2 | -3/+9 |
| | | | | | | | | | state of the import system. Also make importlib.invalidate_caches() work with sys.meta_path instead of sys.path_importer_cache to completely separate the path-based import system from the overall import system. Patch by Eric Snow. | ||||
* | Close #15519: Properly expose WindowsRegistryFinder in importlib and bring ↵ | Nick Coghlan | 2012-08-02 | 1 | -1/+1 |
| | | | | the name into line with normal import terminology. Original patch by Eric Snow | ||||
* | Issue #15502: Bring the importlib ABCs into line with the current state of ↵ | Nick Coghlan | 2012-08-02 | 2 | -7/+21 |
| | | | | the import protocols given PEP 420. Original patch by Eric Snow. | ||||
* | abc fixes. | Barry Warsaw | 2012-07-31 | 2 | -0/+13 |
| | |||||
* | Remove a relative import that escaped test.test_importlib. | Brett Cannon | 2012-07-21 | 1 | -1/+1 |
| | |||||
* | Move importlib.test.benchmark to Tools/importbench to make it more | Brett Cannon | 2012-07-20 | 1 | -252/+0 |
| | | | | | visible and to place it with other micro-benchmarks (e.g. stringbench). | ||||
* | Issue #15168: Move importlb.test to test.test_importlib. | Brett Cannon | 2012-07-20 | 41 | -0/+4545 |
This should make the Linux distros happy as it is now easier to leave importlib's tests out of their base Python distribution. |