mirror of
https://github.com/python/cpython.git
synced 2025-10-14 10:53:40 +00:00

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 c0eaa232f6
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 lines
127 B
Python
7 lines
127 B
Python
attr = 'submodule'
|
|
class A:
|
|
attr = 'submodule'
|
|
class submodule:
|
|
attr = 'rebound'
|
|
class B:
|
|
attr = 'rebound'
|