Skip to content
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

Have tests inspect an exception's e.value instead of just e as pytest 5.0.0 changed its behavior #418

Merged
merged 1 commit into from Jul 2, 2019

Conversation

twongCMU
Copy link

@twongCMU twongCMU commented Jul 2, 2019

This fix addresses twongCMU#1 in which the some unit tests fail under pytest 5.0.0. This version changed an exception to only show the exception type and not the custom text; that info is in e.value now.

@twongCMU
Copy link
Author

twongCMU commented Jul 2, 2019

I've resubmitted this with just the fix to the pytest 5.0.0 problem. I'm sorry if I did any confusing git things; I've spent 13 years using Perforce and learning Git has been slow going :)

pytest 5.0.0 no longer displays the custom text with str(e)
@matteobachetti
Copy link
Member

Thank you! I took the liberty of rebasing your changes to the current master and squashing the commits to simplify the history.

@matteobachetti matteobachetti merged commit 9c4d030 into StingraySoftware:master Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants