Skip to content

Commit

Permalink
Add CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Jul 1, 2023
1 parent 46c0a11 commit ce021a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelog/10337.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fixed but that fake intermediate modules generated by ``--import-mode=importlib`` would not include the
child modules as attributes of the parent modules.
4 changes: 2 additions & 2 deletions testing/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,5 +602,5 @@ def test_parent_contains_child_module_attribute(
modules = {"xxx.tests.foo": ModuleType("xxx.tests.foo")}
insert_missing_modules(modules, "xxx.tests.foo")
assert sorted(modules) == ["xxx", "xxx.tests", "xxx.tests.foo"]
assert modules["xxx"].tests == modules["xxx.tests"]
assert modules["xxx.tests"].foo == modules["xxx.tests.foo"]
assert modules["xxx"].tests is modules["xxx.tests"]
assert modules["xxx.tests"].foo is modules["xxx.tests.foo"]

0 comments on commit ce021a0

Please sign in to comment.