Files
pytest2/_pytest
Florian Bruhin 9849022eb2 Remove "matching '...'" part from the pytest.raises message
When a test with pytest.raises(ValueError, match='foo') doesn't raise, the
following error is printed:

    Failed: DID NOT RAISE <class 'ValueError'> matching 'foo'

This error message is confusing as it implies a ValueError was raised, but the
message wasn't matching 'foo'.

I first considered rewording it somehow to preserve the match pattern in it, but
I don't think that's worthwhile as the pattern should usually be apparent from
the stacktrace anyways (hard-coded, as parametrization, or with --showlocals for
more sophisticated cases).
2018-02-14 19:20:00 +01:00
..
2018-01-09 12:44:10 -08:00
2017-04-26 15:57:55 +02:00
2017-10-24 22:13:32 -02:00
2017-11-15 15:16:00 -02:00
2017-11-03 16:37:18 -02:00
2017-07-17 01:44:23 +02:00
2018-01-30 18:21:12 +01:00
2017-12-18 11:08:20 +01:00
2017-10-02 21:24:52 -03:00
2017-10-24 21:01:00 -02:00
2017-07-17 01:44:23 +02:00