I tested the basic behaviour on 2.6: 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@subunit-lucid:~$ echo $? 1
so something has broken your Python 2.6 behaviour w.r.t. exception handling.
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.