_idval: remove trailing newline from exception
This commit is contained in:
parent
a2d48332fc
commit
426a4cdca9
|
@ -1156,8 +1156,7 @@ def _idval(val, argname, idx, idfn, item, config):
|
||||||
if generated_id is not None:
|
if generated_id is not None:
|
||||||
val = generated_id
|
val = generated_id
|
||||||
except Exception as e:
|
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 {}"
|
||||||
msg = "{}: error raised while trying to determine id of parameter '{}' at position {}\n"
|
|
||||||
msg = msg.format(item.nodeid, argname, idx)
|
msg = msg.format(item.nodeid, argname, idx)
|
||||||
raise ValueError(msg) from e
|
raise ValueError(msg) from e
|
||||||
elif config:
|
elif config:
|
||||||
|
|
Loading…
Reference in New Issue