summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import
Commit message (Collapse)AuthorAgeFilesLines
* [3.5] Backport bpo-30876 (GH-2639), bpo-18018 and bpo-26367. (#2677)Serhiy Storchaka2017-07-233-3/+21
| | | | | | | | | | | | | | | | * bpo-30876: Relative import from unloaded package now reimports the package instead of failing with SystemError. Relative import from non-package now fails with ImportError rather than SystemError. (cherry picked from commit 8a9cd20edca7d01b68292036029ae3735ce65edd) * bpo-18018: Import raises ImportError instead of SystemError if a relative import is attempted without a known parent package. * bpo-26367: importlib.__init__() raises ImportError like builtins.__import__() when ``level`` is specified but without an accompanying package specified.
* [3.5] 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 #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