jaberg/Theano — comment on commit 4848c60132d16ad334e0d6bb78a5857a8d028709
File: theano/tensor/tests/test_basic.py line 210
By jaberg:

originally what was there was "raise type, exc_value, traceback" which is deprecated syntax.

a recent pep8 commit introduced type(exc_value, traceback) which turns out to not work, because sometimes the `type` is an Exception subclass that overrides the constructor to have a different signature.

This new change passes tests, and uses modern syntax, but nosetests -sd did not print the error messages (that I could see anyway). I left in the exc.args modification for other unittests that might be checking that, and put in a print statement to make the err_msg visible.