Remove unused/unneeded code

This commit is contained in:
Bruno Oliveira
2019-06-15 10:16:59 -03:00
parent 355eb5adfb
commit 177af032d2
3 changed files with 1 additions and 17 deletions

View File

@@ -1170,8 +1170,6 @@ def _idval(val, argname, idx, idfn, item, config):
# See issue https://github.com/pytest-dev/pytest/issues/2169
msg = "{}: error raised while trying to determine id of parameter '{}' at position {}\n"
msg = msg.format(item.nodeid, argname, idx)
# we only append the exception type and message because on Python 2 reraise does nothing
msg += " {}: {}\n".format(type(e).__name__, e)
raise ValueError(msg) from e
elif config:
hook_id = config.hook.pytest_make_parametrize_id(