Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | merge 3.3 | Benjamin Peterson | 2013-05-11 | 1 | -1/+2 |
|\ | |||||
| * | only close non-None files | Benjamin Peterson | 2013-05-11 | 1 | -1/+2 |
| | | |||||
| * | Fix a test to not use an assertion for something that could be | Brett Cannon | 2013-05-04 | 1 | -1/+2 |
| | | | | | | | | legitimately false. | ||||
* | | Change a test assertion to a conditional so the test will pass on | Brett Cannon | 2013-05-04 | 1 | -2/+3 |
| | | | | | | | | Windows. | ||||
* | | add trailing newline to file | Brett Cannon | 2013-05-03 | 1 | -1/+1 |
| | | |||||
* | | Move test_imp over to unittest.main() | Brett Cannon | 2013-05-03 | 1 | -16/+6 |
| | | |||||
* | | Guard more tests in test_imp requiring imp.load_dynamic() to exist. | Brett Cannon | 2013-05-03 | 1 | -6/+13 |
| | | |||||
* | | #15902: merge w/ 3.3 | Brett Cannon | 2013-05-03 | 1 | -0/+15 |
|\ \ | |/ | |||||
| * | Issue #15902: Fix imp.load_module() to accept None as a file when | Brett Cannon | 2013-05-03 | 1 | -0/+15 |
| | | | | | | | | | | | | | | trying to load an extension module. While at it, also add a proper unittest.skipIf() guard to another test involving imp.load_dynamic(). | ||||
* | | #11420: merge with 3.3. | Ezio Melotti | 2013-03-16 | 1 | -2/+4 |
|\ \ | |/ | |||||
| * | #11420: merge with 3.2. | Ezio Melotti | 2013-03-16 | 1 | -2/+4 |
| |\ | |||||
| | * | #11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch ↵ | Ezio Melotti | 2013-03-16 | 1 | -3/+5 |
| | | | | | | | | | | | | by Thomas Wouters. | ||||
* | | | Rename test module names for #16421 to don't clash with other tests. | Andrew Svetlov | 2012-12-15 | 1 | -4/+4 |
| | | | |||||
* | | | Issue #16421: allow to load multiple modules from the same shared object. | Andrew Svetlov | 2012-12-14 | 1 | -0/+14 |
|/ / | | | | | | | Patch by Václav Šmilauer. | ||||
* | | Issue #15828: Don't try to close a file if imp.find_module() doesn't | Brett Cannon | 2012-08-31 | 1 | -1/+3 |
| | | | | | | | | return one. | ||||
* | | Issue #15828: Restore support for C extension modules in imp.load_module() | Nick Coghlan | 2012-08-31 | 1 | -0/+29 |
| | | |||||
* | | Issue #15056: imp.cache_from_source() and source_from_cache() raise | Brett Cannon | 2012-07-09 | 1 | -0/+18 |
| | | | | | | | | | | | | NotimplementedError when sys.implementation.cache_tag is None. Thanks to Pranav Ravichandran for taking an initial stab at the patch. | ||||
* | | Try to further debug occasional buildbot failure | Antoine Pitrou | 2012-06-23 | 1 | -0/+6 |
| | | |||||
* | | Issue #13959: Have | Brett Cannon | 2012-05-11 | 1 | -6/+13 |
| | | | | | | | | | | | | | | | | | | | | importlib.abc.FileLoader.load_module()/get_filename() and importlib.machinery.ExtensionFileLoader.load_module() have their single argument be optional as the loader's constructor has all the ncessary information. This allows for the deprecation of imp.load_source()/load_compile()/load_package(). | ||||
* | | Change tests for imp.cache_from_source() to follow os.path.join/split | Brett Cannon | 2012-04-22 | 1 | -43/+32 |
| | | | | | | | | semantics. | ||||
* | | Issue #14599: Generalize a test for ImportError.path and add support | Brett Cannon | 2012-04-20 | 1 | -0/+11 |
| | | | | | | | | | | | | | | in Python/dynload_shlibs.c. This should fix the remaining importlib test failure on Windows. Support in AIX and HP-UX will be in a separate checkin. | ||||
* | | Issue #14633: Simplify imp.find_modue() test after fixes from issue | Brett Cannon | 2012-04-20 | 1 | -4/+2 |
| | | | | | | | | #14629 changed the message. | ||||
* | | More debug output | Antoine Pitrou | 2012-02-27 | 1 | -2/+2 |
| | | |||||
* | | Improve debugging output for test failure | Antoine Pitrou | 2012-02-27 | 1 | -1/+1 |
| | | |||||
* | | Issue #14080: fix sporadic test_imp failure. Patch by Stefan Krah. | Antoine Pitrou | 2012-02-26 | 1 | -0/+1 |
| | | |||||
* | | Additional debug info in case of failure | Antoine Pitrou | 2012-02-22 | 1 | -2/+1 |
| | | |||||
* | | unload() should be sufficient | Antoine Pitrou | 2012-02-22 | 1 | -2/+2 |
| | | |||||
* | | Try to debug sporadic test failures | Antoine Pitrou | 2012-02-22 | 1 | -2/+5 |
| | | |||||
* | | Issue #12451: Add support.create_empty_file() | Victor Stinner | 2011-06-30 | 1 | -2/+1 |
| | | | | | | | | | | | | | | We don't need to create a temporary buffered binary or text file object just to create an empty file. Replace also os.fdopen(handle).close() by os.close(handle). | ||||
* | | Issue #11919: try to fix test_imp failure on some buildbots. | Antoine Pitrou | 2011-04-25 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | Issue #11919: try to fix test_imp failure on some buildbots. | Antoine Pitrou | 2011-04-25 | 1 | -1/+2 |
| | | |||||
* | | Correctly merging #9319 into 3.3? | Jesus Cea | 2011-04-25 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | Issue #9319: Fix the unit test | Victor Stinner | 2011-04-22 | 1 | -1/+2 |
| | | |||||
| * | Issue #9319: Fix a crash on parsing a Python source code without encoding | Victor Stinner | 2011-04-22 | 1 | -0/+3 |
| | | | | | | | | | | cookie and not valid in UTF-8: use "<file>" as the filename instead of reading from NULL. | ||||
* | | Issue #9319: Include the filename in "Non-UTF8 code ..." syntax error. | Victor Stinner | 2011-04-04 | 1 | -0/+6 |
| | | |||||
* | | Fix imp.cache_from_source() if the directory name contains a dot | Victor Stinner | 2011-03-14 | 1 | -0/+4 |
|/ | | | | | If the directory name contains a dot but not the filename, don't strip at the dot. | ||||
* | #9424: Replace deprecated assert* methods in the Python test suite. | Ezio Melotti | 2010-11-20 | 1 | -1/+1 |
| | |||||
* | Move test_imp over to file context managers. | Brett Cannon | 2010-10-29 | 1 | -23/+23 |
| | |||||
* | Issue #9308: Removed redundant coding cookies. Added tests for | Alexander Belopolsky | 2010-10-15 | 1 | -9/+23 |
| | | | | | importing encoded modules that do not depend on specific stdlib modules being encoded in a certain way. | ||||
* | test_imp: getfilesystemencoding() cannot be None anymore | Victor Stinner | 2010-09-29 | 1 | -1/+0 |
| | | | | And the codec name is normalized. | ||||
* | Fix a typo: TESTFN_UNENCODEABLE => TESTFN_UNENCODABLE | Victor Stinner | 2010-08-13 | 1 | -2/+2 |
| | |||||
* | Issue #9425: NullImporter constructor is fully unicode compliant | Victor Stinner | 2010-08-13 | 1 | -0/+13 |
| | | | | | | * On non-Windows OSes: the constructor accepts bytes filenames and use surrogateescape for unicode filenames * On Windows: use GetFileAttributesW() instead of GetFileAttributesA() | ||||
* | pydoc still has a silly encoding | Benjamin Peterson | 2010-07-05 | 1 | -1/+1 |
| | |||||
* | PEP 3147 | Barry Warsaw | 2010-04-17 | 1 | -2/+125 |
| | |||||
* | Typo | Florent Xicluna | 2010-03-20 | 1 | -1/+1 |
| | |||||
* | #8133: Use appropriate Unicode decomposition on MacOS X platform. | Florent Xicluna | 2010-03-20 | 1 | -1/+8 |
| | |||||
* | take into account shebang line change | Benjamin Peterson | 2010-03-11 | 1 | -1/+1 |
| | |||||
* | The test was failing because the curdir was missing from sys.path. This ↵ | Ezio Melotti | 2010-03-06 | 1 | -0/+4 |
| | | | | should fix the problem. | ||||
* | Cleanup and minor fixes. | Ezio Melotti | 2010-03-06 | 1 | -17/+13 |
| | |||||
* | sys.getdefaultencoding() can return None. | Ezio Melotti | 2010-03-05 | 1 | -0/+1 |
| |