Skip to content

Commit 426a4cd

Browse files
committed
_idval: remove trailing newline from exception
1 parent a2d4833 commit 426a4cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/_pytest/python.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,8 +1156,7 @@ def _idval(val, argname, idx, idfn, item, config):
11561156
if generated_id is not None:
11571157
val = generated_id
11581158
except Exception as e:
1159-
# See issue https://github.com/pytest-dev/pytest/issues/2169
1160-
msg = "{}: error raised while trying to determine id of parameter '{}' at position {}\n"
1159+
msg = "{}: error raised while trying to determine id of parameter '{}' at position {}"
11611160
msg = msg.format(item.nodeid, argname, idx)
11621161
raise ValueError(msg) from e
11631162
elif config:

0 commit comments

Comments
 (0)