Brian Okken: pytest 2.6.0 release
There’s a new release ofpytest-check. Version 2.6.0.
This is a cool contribution from the community.
The problem
In July,bluenote10reported thatcheck.raises()doesn’t behave likepytest.raises()in that theAssertionErrorreturned fromcheck.raises()doesn’t have a queryablevalue.
Example ofpytest.raises():
We’d likecheck.raises()to act similarly:
But that didn’t work prior to 2.6.0. The issue was that the value returned fromcheck.raises()didn’t have any.valueatribute.