Join GitHub today
pytest issues warning about unicode warnings containign non-ascii even if it only contains ascii chars #2809
The test below reproduces the error (the first warning with bytes will work as expected and the second will break pytest).
Note: just did some more tests and apparently this error happens only when the
Still, note that the unicode passed is convertible to ascii (so, pytest itself should not give a new warning which causes the exception to be raised and gives the internal error).