summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import
Commit message (Collapse)AuthorAgeFilesLines
* bpo-28655: Fix test_import.test_missing_source_legacy() (GH-9589)Victor Stinner2018-09-261-2/+5
| | | | | | | | bpo-28655, bpo-33053: test_import.test_missing_source_legacy() now removes the .pyc file that it creates to avoid leaking a file. Fix extract from commit d5d9e02dd3c6df06a8dd9ce75ee9b52976420a8b. Co-Authored-By: Nick Coghlan <ncoghlan@gmail.com>
* [3.6] bpo-31492: Fix assertion failures in case of a module with a bad ↵Serhiy Storchaka2017-09-271-0/+12
| | | | | __name__ attribute. (GH-3620). (#3773) (cherry picked from commit 6db7033192cd537ca987a65971acb01206c3ba82)
* [3.6] bpo-30876: Relative import from unloaded package now reimports the ↵Serhiy Storchaka2017-07-163-3/+21
| | | | | | | | | package (GH-2639) (#2676) instead of failing with SystemError. Relative import from non-package now fails with ImportError rather than SystemError. (cherry picked from commit 8a9cd20edca7d01b68292036029ae3735ce65edd)
* [3.6] bpo-30814: Fixed a race condition when import a submodule from a ↵Serhiy Storchaka2017-07-063-0/+30
| | | | | package. (GH-2580). (#2598) (cherry picked from commit b4baacee1adc06edbe30ac7574d17a8cd168e2e0)
* [3.6] Fix skipping test_UNC_path on AppVeyor due to a different error being ↵Zachary Ware2017-06-041-1/+1
| | | | | | | raised (GH-1920) We get `ERROR_BAD_NETPATH` (53) on AppVeyor which is translated to ENOENT (2). (cherry picked from commit 7a99625e0d95cd88ed8842d8677b5beea1fde5ae)
* Issue #15767: Use ModuleNotFoundError.Eric Snow2016-09-071-0/+12
|
* Issue #26583: Skip test_timestamp_overflow in test_import if bytecodeNed Deily2016-03-171-0/+1
| | | | files cannot be written.
* Issue #24492: make sure that ``from ... import ...` raises anBrett Cannon2015-08-121-0/+13
| | | | | | ImportError if __name__ is not defined on a package. Thanks to Armin Rigo for the bug report and diagnosing the cause.
* Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-061-3/+4
| | | | Patch by Christie Wilson.
* Issue #23911: Move path-based bootstrap code to a separate frozen module.Eric Snow2015-05-031-6/+14
|
* Issue #21483: Skip test_timestamp_overflow on NFS.Berker Peksag2015-04-221-1/+2
| | | | Patch by Isaac Schwabacher.
* Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-21/+16
| | | | | | 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.
* WhitespaceAntoine Pitrou2014-10-137-7/+7
|
* Issue #17636: Circular imports involving relative imports are now supported.Antoine Pitrou2014-10-1311-0/+1134