StartUpFailure explodes when passed to unittest.TextTestRunner
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.testrunner |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
zope.tal has a setup.py that uses zope.testrunner's test collection that is then passed (by setuptools) to the stock stdlib unittest test runner.
When an import error happens, this is what I get:
Traceback (most recent call last):
File "setup.py", line 83, in <module>
zip_safe = False,
File "/usr/lib/
dist.
File "/usr/lib/
self.
File "/usr/lib/
cmd_obj.run()
File "/home/
self.
File "/home/
func()
File "/home/
testLoader = cks
File "/usr/lib/
self.runTests()
File "/usr/lib/
self.result = testRunner.
File "/usr/lib/
test(result)
File "/usr/lib/
return self.run(*args, **kwds)
File "/usr/lib/
test(result)
File "/usr/lib/
return self.run(*args, **kwds)
File "/usr/lib/
test(result)
File "/usr/lib/
return self.run(*args, **kwds)
File "/usr/lib/
testMethod = getattr(self, self._testMetho
AttributeError: 'StartUpFailure' object has no attribute '_testMethodName'
This error is very similar to bug 624084 and bug 221151, but it happens with latest zope.testrunner 4.0.4, which has both of those bugs fixed.
Fixed in zope.testrunner 4.1.0.