TypeError: If post_mortem is specified, full exc_info must be passed!
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.testrunner |
Fix Released
|
Undecided
|
Marius Gedminas |
Bug Description
If you have a test module that cannot be imported or has no tests *and* run zope-testrunner -D, you get this error:
Traceback (most recent call last):
File "bin/test", line 20, in <module>
'--test-path', '/home/
File "/home/
failed = run_internal(
File "/home/
runner.run()
File "/home/
feature.
File "/home/
tests = find_tests(
File "/home/
for suite in found_suites:
File "/home/
+ (sys.exc_
File "/home/
raise TypeError('If post_mortem is specified, '
TypeError: If post_mortem is specified, full exc_info must be passed!
To reproduce:
check out zope.testrunner
python bootstrap.py
bin/buildout
edit src/zope/
bin/test -D
Changed in zope.testrunner: | |
status: | New → In Progress |
assignee: | nobody → Marius Gedminas (mgedmin) |
Changed in zope.testrunner: | |
status: | In Progress → Fix Committed |
Changed in zope.testrunner: | |
status: | Fix Committed → Fix Released |
A related but different bug: instead of a syntax error (that would raise during import time) cause an invalid test_suite to be returned (e.g. return None) and try bin/test -D. Same error, different place.