summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_imp.py
Commit message (Collapse)AuthorAgeFilesLines
* merge 3.3Benjamin Peterson2013-05-111-1/+2
|\
| * only close non-None filesBenjamin Peterson2013-05-111-1/+2
| |
| * Fix a test to not use an assertion for something that could beBrett Cannon2013-05-041-1/+2
| | | | | | | | legitimately false.
* | Change a test assertion to a conditional so the test will pass onBrett Cannon2013-05-041-2/+3
| | | | | | | | Windows.
* | add trailing newline to fileBrett Cannon2013-05-031-1/+1
| |
* | Move test_imp over to unittest.main()Brett Cannon2013-05-031-16/+6
| |
* | Guard more tests in test_imp requiring imp.load_dynamic() to exist.Brett Cannon2013-05-031-6/+13
| |
* | #15902: merge w/ 3.3Brett Cannon2013-05-031-0/+15
|\ \ | |/
| * Issue #15902: Fix imp.load_module() to accept None as a file whenBrett Cannon2013-05-031-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 Melotti2013-03-161-2/+4
|\ \ | |/
| * #11420: merge with 3.2.Ezio Melotti2013-03-161-2/+4
| |\
| | * #11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch ↵Ezio Melotti2013-03-161-3/+5
| | | | | | | | | | | | by Thomas Wouters.
* | | Rename test module names for #16421 to don't clash with other tests.Andrew Svetlov2012-12-151-4/+4
| | |
* | | Issue #16421: allow to load multiple modules from the same shared object.Andrew Svetlov2012-12-141-0/+14
|/ / | | | | | | Patch by Václav Šmilauer.
* | Issue #15828: Don't try to close a file if imp.find_module() doesn'tBrett Cannon2012-08-311-1/+3
| | | | | | | | return one.
* | Issue #15828: Restore support for C extension modules in imp.load_module()Nick Coghlan2012-08-311-0/+29
| |
* | Issue #15056: imp.cache_from_source() and source_from_cache() raiseBrett Cannon2012-07-091-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 failureAntoine Pitrou2012-06-231-0/+6
| |
* | Issue #13959: HaveBrett Cannon2012-05-111-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/splitBrett Cannon2012-04-221-43/+32
| | | | | | | | semantics.
* | Issue #14599: Generalize a test for ImportError.path and add supportBrett Cannon2012-04-201-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 issueBrett Cannon2012-04-201-4/+2
| | | | | | | | #14629 changed the message.
* | More debug outputAntoine Pitrou2012-02-271-2/+2
| |
* | Improve debugging output for test failureAntoine Pitrou2012-02-271-1/+1
| |
* | Issue #14080: fix sporadic test_imp failure. Patch by Stefan Krah.Antoine Pitrou2012-02-261-0/+1
| |
* | Additional debug info in case of failureAntoine Pitrou2012-02-221-2/+1
| |
* | unload() should be sufficientAntoine Pitrou2012-02-221-2/+2
| |
* | Try to debug sporadic test failuresAntoine Pitrou2012-02-221-2/+5
| |
* | Issue #12451: Add support.create_empty_file()Victor Stinner2011-06-301-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 Pitrou2011-04-251-1/+2
|\ \ | |/
| * Issue #11919: try to fix test_imp failure on some buildbots.Antoine Pitrou2011-04-251-1/+2
| |
* | Correctly merging #9319 into 3.3?Jesus Cea2011-04-251-0/+4
|\ \ | |/
| * Issue #9319: Fix the unit testVictor Stinner2011-04-221-1/+2
| |
| * Issue #9319: Fix a crash on parsing a Python source code without encodingVictor Stinner2011-04-221-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 Stinner2011-04-041-0/+6
| |
* | Fix imp.cache_from_source() if the directory name contains a dotVictor Stinner2011-03-141-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 Melotti2010-11-201-1/+1
|
* Move test_imp over to file context managers.Brett Cannon2010-10-291-23/+23
|
* Issue #9308: Removed redundant coding cookies. Added tests forAlexander Belopolsky2010-10-151-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 anymoreVictor Stinner2010-09-291-1/+0
| | | | And the codec name is normalized.
* Fix a typo: TESTFN_UNENCODEABLE => TESTFN_UNENCODABLEVictor Stinner2010-08-131-2/+2
|
* Issue #9425: NullImporter constructor is fully unicode compliantVictor Stinner2010-08-131-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 encodingBenjamin Peterson2010-07-051-1/+1
|
* PEP 3147Barry Warsaw2010-04-171-2/+125
|
* TypoFlorent Xicluna2010-03-201-1/+1
|
* #8133: Use appropriate Unicode decomposition on MacOS X platform.Florent Xicluna2010-03-201-1/+8
|
* take into account shebang line changeBenjamin Peterson2010-03-111-1/+1
|
* The test was failing because the curdir was missing from sys.path. This ↵Ezio Melotti2010-03-061-0/+4
| | | | should fix the problem.
* Cleanup and minor fixes.Ezio Melotti2010-03-061-17/+13
|
* sys.getdefaultencoding() can return None.Ezio Melotti2010-03-051-0/+1
|