Hi, since #1861 we cannot pass python 2 unicode object to parametrize():
sample code:
import pytest
@pytest.mark.parametrize('p', ['v'], ids=[u'v'])
def test_foo(p):
pass
Error is:
v/local/lib/python2.7/site-packages/_pytest/python.py:105: in pytest_generate_tests
metafunc.parametrize(*marker.args, **marker.kwargs)
v/local/lib/python2.7/site-packages/_pytest/python.py:837: in parametrize
raise ValueError(msg % (saferepr(id_value), type(id_value).__name__))
E ValueError: ids must be list of strings, found: 'v' (type: unicode)
Will this be fixed or should I encode my string only with python 2 (or both) ?
Thanks !
Hi, since #1861 we cannot pass python 2 unicode object to
parametrize():sample code:
Error is:
Will this be fixed or should I encode my string only with python 2 (or both) ?
Thanks !