Bug #1258125 “ExpectedException doesn't accept sub-classes of gi...” : Bugs : testtools (original) (raw)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone |
---|---|---|---|---|
testtools | Triaged | High | Unassigned |
Bug Description
class MyException(TypeError):
pass
then
with ExpectException(TypeError, '...'):
raise MyException()
doesn't catch the exception and check its message; it simply propagates upwards.
Robert Collins (lifeless) on 2014-01-29
Changed in testtools: | |
---|---|
status: | New → Triaged |
importance: | Undecided → High |
To post a comment you must log in.