-
Notifications
You must be signed in to change notification settings - Fork 119
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
test_invalid_utf8: Use distinct if/else branches #468
Conversation
pytest isn't able to report the expected value when using the 'X if Y else Z' syntax. See pytest-dev/pytest#7727
Forcing an error does show the expected reporting
|
Guess I didn't need to force a failure to see how this looks. Python 2 tests are failing and probably have been since they were added:
|
Note that |
Distinct branches are good for code coverage though anyway. |
the correct default behaviour in python2 should be no decoding, i e get the raw |
Maybe you can push the right changes to my branch? I'm not familiar with the pynvim APIs. |
Closing in favor of #492, which rips out the py2 code, thus getting rid of the bug. |
pytest isn't able to report the expected value when using the
X if Y else Z
syntax.See pytest-dev/pytest#7727