Skip to content

Commit ce021a0

Browse files
committed
Add CHANGELOG
1 parent 46c0a11 commit ce021a0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

changelog/10337.bugfix.rst

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed but that fake intermediate modules generated by ``--import-mode=importlib`` would not include the
2+
child modules as attributes of the parent modules.

testing/test_pathlib.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -602,5 +602,5 @@ def test_parent_contains_child_module_attribute(
602602
modules = {"xxx.tests.foo": ModuleType("xxx.tests.foo")}
603603
insert_missing_modules(modules, "xxx.tests.foo")
604604
assert sorted(modules) == ["xxx", "xxx.tests", "xxx.tests.foo"]
605-
assert modules["xxx"].tests == modules["xxx.tests"]
606-
assert modules["xxx.tests"].foo == modules["xxx.tests.foo"]
605+
assert modules["xxx"].tests is modules["xxx.tests"]
606+
assert modules["xxx.tests"].foo is modules["xxx.tests.foo"]

0 commit comments

Comments
 (0)