StartUpFailure.shortDescription() fails with AttributeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.testing |
Fix Released
|
Medium
|
Roman Joost | ||
zope.testrunner |
Fix Released
|
Medium
|
Tres Seaver |
Bug Description
StartUpFailure subclasses unittest.TestCase, but doesn't call its __init__, which eventually results in
this error when a test suite containing a StartUpFailure object gets passed to the real unittest.
> Traceback (most recent call last):
> File "setup.py", line 47, in <module>
> 'zope.testing',
> File "/usr/lib64/
> dist.run_commands()
> File "/usr/lib64/
> self.run_
> File "/usr/lib64/
> cmd_obj.run()
> File "/usr/lib/
> self.with_
> File "/usr/lib/
> func()
> File "/usr/lib/
> testLoader = loader_class()
> File "/usr/lib64/
> self.runTests()
> File "/usr/lib64/
> result = self.testRunner
> File "/usr/lib64/
> test(result)
> File "/usr/lib64/
> return self.run(*args, **kwds)
> File "/usr/lib64/
> test(result)
> File "/usr/lib64/
> return self.run(*args, **kwds)
> File "/usr/lib64/
> test(result)
> File "/usr/lib64/
> return self.run(*args, **kwds)
> File "/usr/lib64/
> result.
> File "/usr/lib64/
> self.stream.
> File "/usr/lib64/
> return test.shortDescr
> File "/usr/lib64/
> doc = self._testMethodDoc
> AttributeError: 'StartUpFailure' object has no attribute '_testMethodDoc'
This is a problem when you want to use zope.testing's test finding helpers to implement 'python setup.py test'.
Changed in zope.testing: | |
assignee: | nobody → Roman Joost (romanofski-two) |
Changed in zope.testrunner: | |
status: | New → Confirmed |
assignee: | nobody → Tres Seaver (tseaver) |
I can verify that 'StartupFailure .__init_ _' still doesn't call the base class '__init__' on the zope.testrunner trunk.