Skip to content

Commit 05fdd5d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9c9c592 commit 05fdd5d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/_pytest/fixtures.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1736,7 +1736,11 @@ def parsefactories(
17361736

17371737
module_types = (types.ModuleType,)
17381738
# support IPython's DummyMod if the module containing it has been imported
1739-
if (DummyMod := getattr(sys.modules.get("IPython.core.interactiveshell"), "DummyMod", None)) is not None:
1739+
if (
1740+
DummyMod := getattr(
1741+
sys.modules.get("IPython.core.interactiveshell"), "DummyMod", None
1742+
)
1743+
) is not None:
17401744
module_types += (DummyMod,)
17411745
# Avoid accessing `@property` (and other descriptors) when iterating fixtures.
17421746
if not safe_isclass(holderobj) and not isinstance(holderobj, module_types):

0 commit comments

Comments
 (0)