New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buildbot failures in test_site #49566
Comments
Recently, some buildbot failures have started appearing on trunk and ====================================================================== Traceback (most recent call last):
File
"/home/pybot/buildarea/3.x.klose-ubuntu-i386/build/Lib/test/test_site.py",
line 105, in test_s_option
self.assertEqual(rc, 1)
AssertionError: 0 != 1 make: *** [buildbottest] Error 1 |
I manage to reproduce it by running test_site just after test_distutils: ./python -E -tt -m test.regrtest -uall -l -w test_distutils test_site It could be related to test_distutils modifying an environment variable |
Trial and error shows it's test_sdist.py. |
Probably attached patch will fix this issue. But this patch doesn't It seems this is multi inheritance problem. Following code shows B.setUp class A(object): # LoggingSilencer
def setUp(self):
print "A setup"
super(A, self).setUp()
def tearDown(self):
print "A tearDown"
super(A, self).tearDown()
class B: # PyPIRCCommandTestCase
def setUp(self):
print "B setup"
def tearDown(self):
print "B tearDown"
class C(A, B): # sdistTestCase
def setUp(self):
A.setUp(self)
B.setUp(self)
def tearDown(self):
A.tearDown(self)
B.tearDown(self)
c = C()
c.setUp()
c.tearDown() """ P.S. This is first time I saw the behavior of super in multi |
right, subclasses must use super if their superclasses do. I'll apply Hirozaku patch (thanks). I might also simplify distutil base test class to avoid Mixins. |
applied in r69976 and r69977 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: