Skip to content

Commit

Permalink
Remove a no-longer-needed check if enum is available
Browse files Browse the repository at this point in the history
Not needed since 4d49ba6.
  • Loading branch information
bluetech committed Jul 16, 2019
1 parent e0835e8 commit cb07f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ def _idval(val, argname, idx, idfn, item, config):
return str(val)
elif isinstance(val, REGEX_TYPE):
return ascii_escaped(val.pattern)
elif enum is not None and isinstance(val, enum.Enum):
elif isinstance(val, enum.Enum):
return str(val)
elif (inspect.isclass(val) or inspect.isfunction(val)) and hasattr(val, "__name__"):
return val.__name__
Expand Down

0 comments on commit cb07f1e

Please sign in to comment.