-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeDecodeError pytest-html with pytest-pylint on Windows #342
Comments
I'm going to try and take a look at this now |
Updating this issue with a minimal reproducer:
When I do not invoke
However when I add
|
Upon further inspection it looks like this is an issue with the interaction between pytest-pylint and
Later on, this string is converted as indicated in the issue description, and the value we receive fails conversion since
In this case,
If we were to escape the sequence |
Closing this issue since we can't reliably make a special case for the |
Hi @R-Broadley as per carsongee/pytest-pylint#144 (comment) this issue should be resolved now. Thank you for reporting it! |
@gnikonorov Thanks for investigating. I will test this in the next day or so, but expect the two plugins should work nicely together on our Windows machines with the new release of pytest-pylint. |
Anytime @R-Broadley! If you're still experiencing problems please don't hesitate to reopen this issue. |
I am using the pytest-html (2.1.1) and pytest-pylint(0.17.0) plugins (pytest version 6.1.1) on a windows host (python 3.7.7).
The line that is causing the issue is this one plugin.py#L156.
I put a break point in to see what
report.nodeid
contained: this is a basic example:It is the \U which causes the issue.
Should there be some mechanism to standardise all paths to use / or at least handle \\ properly?
Here is the full traceback:
The text was updated successfully, but these errors were encountered: