summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import/data
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-117860: Add tests for resolving names when import rebind names ↵Miss Islington (bot)2024-04-304-0/+17
| | | | | | | | | | (GH-118176) (GH-118432) Add tests for "import", pkgutil.resolve_name() and unittest.mock.path() for cases when "import a.b as x" and "from a import b as x" give different results. (cherry picked from commit c0eaa232f63a62e0e0408911ab5f118dca2af607) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.12] gh-108303: Move `double_const` to `test_import` where it belongs ↵Miss Islington (bot)2023-12-111-0/+30
| | | | | | | | (GH-112108) (#112976) gh-108303: Move `double_const` to `test_import` where it belongs (GH-112108) (cherry picked from commit 0738b9a338fd27ff2d4456dd9c15801a8858ffd9) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* bpo-44717: improve AttributeError on circular imports of submodules (GH-27338)Filipe Laíns2021-07-243-0/+4
|
* Revert "bpo-44717: improve AttributeError on circular imports of submodules ↵Pablo Galindo Salgado2021-07-243-4/+0
| | | | | (GH-27299)" (GH-27331) This reverts commit 8072a1181dd64135f700b44372fbf7bf91e68072.
* bpo-44717: improve AttributeError on circular imports of submodules (GH-27299)Filipe Laíns2021-07-243-0/+4
| | | | | Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-39336: Allow packages to not let their child modules be set on them (#18006)Dino Viehland2020-01-232-0/+12
| | | | | * bpo-39336: Allow setattr to fail on modules which aren't assignable When attaching a child module to a package if the object in sys.modules raises an AttributeError (e.g. because it is immutable) it causes the whole import to fail. This now allows immutable packages to exist and an ImportWarning is reported and the AttributeError exception is ignored.
* bpo-20490: Improve circular import error message (GH-15308)Anthony Sottile2019-09-092-0/+4
|
* bpo-33237: Improve AttributeError message for partially initialized module. ↵Serhiy Storchaka2018-10-302-0/+4
| | | | (GH-6398)
* bpo-30876: Relative import from unloaded package now reimports the package ↵Serhiy Storchaka2017-07-122-0/+3
| | | | | | | | | (#2639) instead of failing with SystemError. Relative import from non-package now fails with ImportError rather than SystemError.
* bpo-30814: Fixed a race condition when import a submodule from a package. ↵Serhiy Storchaka2017-07-062-0/+2
| | | | (#2580)
* bpo-30024: Circular imports involving absolute imports with binding (#1264)Serhiy Storchaka2017-05-092-0/+2
| | | a submodule to a name are now supported.
* WhitespaceAntoine Pitrou2014-10-136-6/+6
|
* Issue #17636: Circular imports involving relative imports are now supported.Antoine Pitrou2014-10-139-0/+18