Skip to content

[3.12] gh-117860: Add tests for resolving names when import rebind names (GH-118176)#118432

Merged
serhiy-storchaka merged 1 commit intopython:3.12from
miss-islington:backport-c0eaa23-3.12
Apr 30, 2024
Merged

[3.12] gh-117860: Add tests for resolving names when import rebind names (GH-118176)#118432
serhiy-storchaka merged 1 commit intopython:3.12from
miss-islington:backport-c0eaa23-3.12

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Apr 30, 2024

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 c0eaa23)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…es (pythonGH-118176)

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 c0eaa23)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants