summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_imp.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-114/+1
| | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied.
* Issue #22390: Remove files created by testsVictor Stinner2014-10-051-0/+1
|
* Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-1/+1
|\
| * Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-1/+1
| |
* | Issue #15204: Deprecated the 'U' mode in file-like objects.Serhiy Storchaka2013-11-231-1/+1
| |
* | Delete merge markersBrett Cannon2013-08-231-3/+1
| |
* | merge for issue #18755Brett Cannon2013-08-231-0/+9
|\ \ | |/
| * Issue #18755: Allow imp.load_*() loaders to have get_data() calledBrett Cannon2013-08-231-0/+7
| | | | | | | | multiple times.
| * issue #18698: ensure importlib.reload() returns the module out of sys.modules.Eric Snow2013-08-151-0/+17
| |
* | Issue #7732: try to fix test_bug7732's flakiness on Windows by executing it ↵Antoine Pitrou2013-08-191-5/+3
| | | | | | | | in a fresh temporary directory.
* | Issue #18706: Fix a test for issue #18681 so it no longer breaks ↵Serhiy Storchaka2013-08-111-2/+3
|\ \ | |/ | | | | test_codeccallbacks*.
| * Issue #18706: Fix a test for issue #18681 so it no longer breaks ↵Serhiy Storchaka2013-08-111-2/+3
| | | | | | | | test_codeccallbacks*.
* | #18681: merge with 3.3.Ezio Melotti2013-08-101-0/+9
|\ \ | |/
| * #18681: Fix a NameError in imp.reload() (noticed by Weizhao Li).Ezio Melotti2013-08-101-0/+9
| |
* | Issue #17177: The imp module is pending deprecation.Brett Cannon2013-06-161-1/+3
| | | | | | | | | | | | To make sure there is no issue with code that is both Python 2 and 3 compatible, there are no plans to remove the module any sooner than Python 4 (unless the community moves to Python 3 solidly before then).
* | Issue #7732: Move an imp.find_module test from test_import toBrett Cannon2013-06-071-0/+11
| | | | | | | | test_imp.
* | 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.