Skip to content

Commit d7d5cf4

Browse files
authored
Merge pull request #6215 from blueyed/cleanup-exc
_idval: remove trailing newline from exception
2 parents a3c8246 + 426a4cd commit d7d5cf4

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
@@ -1202,8 +1202,7 @@ def _idval(val, argname, idx, idfn, item, config):
12021202
if generated_id is not None:
12031203
val = generated_id
12041204
except Exception as e:
1205-
# See issue https://github.com/pytest-dev/pytest/issues/2169
1206-
msg = "{}: error raised while trying to determine id of parameter '{}' at position {}\n"
1205+
msg = "{}: error raised while trying to determine id of parameter '{}' at position {}"
12071206
msg = msg.format(item.nodeid, argname, idx)
12081207
raise ValueError(msg) from e
12091208
elif config:

0 commit comments

Comments
 (0)