Skip to content

Commit

Permalink
_idval: remove trailing newline from exception
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Nov 18, 2019
1 parent a2d4833 commit 426a4cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/_pytest/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,8 +1156,7 @@ def _idval(val, argname, idx, idfn, item, config):
if generated_id is not None:
val = generated_id
except Exception as e:
# See issue https://github.com/pytest-dev/pytest/issues/2169
msg = "{}: error raised while trying to determine id of parameter '{}' at position {}\n"
msg = "{}: error raised while trying to determine id of parameter '{}' at position {}"
msg = msg.format(item.nodeid, argname, idx)
raise ValueError(msg) from e
elif config:
Expand Down

0 comments on commit 426a4cd

Please sign in to comment.