-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
type: regressionindicates a problem that was introduced in a release which was working previouslyindicates a problem that was introduced in a release which was working previously
Description
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 !
Metadata
Metadata
Assignees
Labels
type: regressionindicates a problem that was introduced in a release which was working previouslyindicates a problem that was introduced in a release which was working previously