Error importing module is not properly treated in pytest (fails with UnicodeEncodeError from pytest) #2336
pytest version: 3.0.5, OS: Windows 10, python: 2.7.12
We have an intermittent issue when running pytest in that a module won't be properly loaded when imported by pytest. I still don't know the real reason for the issue (could be pytest related or not, still unsure as it's flaky on our ci)... anyways, the known problem on pytest is that pytest hides the real error by giving an UnicodeEncodeError instead of printing the original message (the error is below).
It seems that the problem is that it's mixing bytes and unicode on python 2:
Exception given by pytest:
The text was updated successfully, but these errors were encountered: