summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import/data
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-123880: Allow recursive import of single-phase-init modules ↵Miss Islington (bot)2024-09-231-0/+13
| | | | | | | | | | | (GH-123950) (#124273) gh-123880: Allow recursive import of single-phase-init modules (GH-123950) (cherry picked from commit aee219f4558dda619bd86e4b0e028ce47a5e4b77) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Brett Cannon <brett@python.org>
* gh-117860: Add tests for resolving names when import rebind names (GH-118176)Serhiy Storchaka2024-04-304-0/+17
| | | | | | 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.
* gh-95754: Better AttributeError on partially initialised module (#112577)Shantanu2023-12-211-0/+3
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-108303: Move `double_const` to `test_import` where it belongs (#112108)Nikita Sobolev2023-12-111-0/+30
|
* 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