test listing failures are not detected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Testrepository |
Fix Released
|
Critical
|
Robert Collins |
Bug Description
2013-05-25 07:28:44.335 | running testr
2013-05-25 07:28:44.518 | Traceback (most recent call last):
2013-05-25 07:28:44.518 | File "/usr/lib64/
2013-05-25 07:28:44.519 | "__main__", fname, loader, pkg_name)
2013-05-25 07:28:44.519 | File "/usr/lib64/
2013-05-25 07:28:44.519 | exec code in run_globals
2013-05-25 07:28:44.520 | File "/home/
2013-05-25 07:28:44.520 | stdout=sys.stdout)
2013-05-25 07:28:44.521 | File "/home/
2013-05-25 07:28:44.522 | self.parseArgs(
2013-05-25 07:28:44.522 | File "/home/
2013-05-25 07:28:44.522 | self._do_
2013-05-25 07:28:44.522 | File "/home/
2013-05-25 07:28:44.523 | raise AssertionError(
2013-05-25 07:28:44.523 | AssertionError: Unable to use discovery, must use python 2.7 or greater, or install the discover package.
summary: |
- subunit.run in python2.6 exits with "0" on failure to find discover - module + setup.py testr integration breaks non-zero exit code detection in testr |
Changed in testrepository: | |
status: | Incomplete → Triaged |
importance: | Undecided → Critical |
Changed in testrepository: | |
assignee: | nobody → Robert Collins (lifeless) |
milestone: | none → next |
Changed in testrepository: | |
status: | Triaged → Fix Committed |
Changed in testrepository: | |
status: | Fix Committed → Fix Released |
I tested the basic behaviour on 2.6: subunit- lucid:~ $ echo $?
cat /tmp/t.py
raise AssertionError
python /tmp/t.py
Traceback (most recent call last):
File "/tmp/t.py", line 1, in <module>
raise AssertionError
AssertionError
robertc@
1
so something has broken your Python 2.6 behaviour w.r.t. exception handling.