Bug #1118119 “WithAttributes inheritance easy to get wrong” : Bugs : testtools (original) (raw)

WithAttributes inheritance easy to get wrong

This bug affects 1 person

Affects Status Importance Assigned to Milestone
testtools Triaged Medium Unassigned

Bug Description

When inherting from WithAttributes to use the @attr decorator WithAttributes has to be put before testtools.TestCase or the @attr decorator won't actually do anything.

Although the example in the documentation shows that WithAttributes first, it doesn't mention that it has to be put first. Also it fails silently without any warning so its difficult to debug what is wrong.