@pytest.mark.parametrize(
"string1", [
pytest.param("test1", id="unicode in id い")
])
def test_unicode_in_param_id(string1:str) -> None:
assert string1 == "test1"
running it with pytest -v test.py gives me
platform darwin -- Python 3.9.6, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 -- /usr/local/opt/python@3.9/bin/python3.9
cachedir: .pytest_cache
rootdir: /Users/solarmist/repos/pytest
collected 1 item
test.py::test_unicode_in_param_id[unicode in id \u3044] PASSED [100%]
I expected the [] to show unicode in id い
pip list
---------- -------
pip 21.2.4
setuptools 57.4.0
wheel 0.36.2```
This is on a macOS 11.4.
running it with
pytest -v test.pygives meI expected the [] to show
unicode in id いpip list