[issue5316] Buildbot failures in test_site
report at bugs.python.org
Wed Feb 25 21:38:05 CET 2009
Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp> added the comment:
Probably attached patch will fix this issue. But this patch doesn't
cover other similar problematic codes.
It seems this is multi inheritance problem. Following code shows B.setUp
and B.tearDown are called twice respectively. (In this issue, B
class A(object): # LoggingSilencer
print "A setup"
print "A tearDown"
class B: # PyPIRCCommandTestCase
print "B setup"
print "B tearDown"
class C(A, B): # sdistTestCase
c = C()
B setup # called twice
B tearDown # ditto
P.S. This is first time I saw the behavior of super in multi
inheritance. Movement of code flaw is interesting and fresh for me. :-)
Added file: http://bugs.python.org/file13177/part_of_fix.patch
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list