Skip to content

Commit 9c9c592

Browse files
committed
add comment
1 parent 5b9c246 commit 9c9c592

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/_pytest/fixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,6 +1735,7 @@ def parsefactories(
17351735
return
17361736

17371737
module_types = (types.ModuleType,)
1738+
# support IPython's DummyMod if the module containing it has been imported
17381739
if (DummyMod := getattr(sys.modules.get("IPython.core.interactiveshell"), "DummyMod", None)) is not None:
17391740
module_types += (DummyMod,)
17401741
# Avoid accessing `@property` (and other descriptors) when iterating fixtures.

0 commit comments

Comments
 (0)