Closed jwodder closed 6 years ago
(That failing TestRecordOnce.test_replays_response_from_cassette
test was like that when I got here.)
I've managed to send https://github.com/betamaxpy/betamax/pull/144 before I realized this one exists. Sorry about that @jwodder. I think that always repr-ing with BetamaxError(...)
is not that good as the default, so I'd rather just remove the repr, but I'd be happy to discuss.
As long as the repr
of a BetamaxError
or subclass thereof shows the message within, I don't really care which implementation gets used. This bug has been causing issues when trying to test my click application.
Also got problems with click app testing. Thanks for your reply. Closing this than in favor of https://github.com/betamaxpy/betamax/pull/144
Exceptions in Python 3 don't have a
message
attribute, and so callingrepr()
on aBetamaxError
in Python 3 fails. This patch fixes that.