ExpectedException doesn't accept sub-classes of given exception type

Bug #1258125 reported by Dan Watkins
6
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.

Changed in testtools:
status: New → Triaged
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.