Skip to content

Commit 6021cf7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5b9c246 commit 6021cf7

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
@@ -1735,7 +1735,11 @@ def parsefactories(
17351735
return
17361736

17371737
module_types = (types.ModuleType,)
1738-
if (DummyMod := getattr(sys.modules.get("IPython.core.interactiveshell"), "DummyMod", None)) is not None:
1738+
if (
1739+
DummyMod := getattr(
1740+
sys.modules.get("IPython.core.interactiveshell"), "DummyMod", None
1741+
)
1742+
) is not None:
17391743
module_types += (DummyMod,)
17401744
# Avoid accessing `@property` (and other descriptors) when iterating fixtures.
17411745
if not safe_isclass(holderobj) and not isinstance(holderobj, module_types):

0 commit comments

Comments
 (0)