Testrunner calls setUp/tearDown of super class when layers do not define setUp/tearDown themselves
Bug #544138 reported by
Christian Zagrodnick
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.testing |
Invalid
|
Low
|
Unassigned | ||
zope.testrunner |
Invalid
|
Low
|
Unassigned |
Bug Description
When layers are stacked a setUp may be called multiple times:
class LayerA(object):
@classmethod
def setUp(cls):
print "foo'
class LayerB(LayerA):
pass
A test using LayerB will print "foo" twice.
To post a comment you must log in.
Layers which don't define setUp and tearDown are kind of beside the point.