Skip to content

Commit 7d1c697

Browse files
committed
Remove a no-longer-needed check if enum is available
Not needed since 4d49ba6.
1 parent 65aee1e commit 7d1c697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ def _idval(val, argname, idx, idfn, item, config):
11641164
return str(val)
11651165
elif isinstance(val, REGEX_TYPE):
11661166
return ascii_escaped(val.pattern)
1167-
elif enum is not None and isinstance(val, enum.Enum):
1167+
elif isinstance(val, enum.Enum):
11681168
return str(val)
11691169
elif (inspect.isclass(val) or inspect.isfunction(val)) and hasattr(val, "__name__"):
11701170
return val.__name__

0 commit comments

Comments
 (0)