[py-dev] test.py bug report -- string exceptions
[This is a resend. Apologies if the original gets unstuck and you see this twice.] I just started playing with test.py, and so far it looks very nice. But I found one little bug so far. (Is there a bug tracker?) Using test.py to test a method that raises a string exception (deprecated, I know) results in a fatal exception that ends the test. Reproduction recipe: ---blah.py-------------- def blah(): raise "TODO" def test_blah(): blah() def test_blah_more(): not_reached() ------------------------ Then $ py.test blah.py The exception is: File "/home/dripton/dist-py/py/test/report/text/summary.py", line 111, in repr_failure_result if issubclass(cls, Item.ExceptionFailure): TypeError: issubclass() arg 1 must be a class -- David Ripton dripton@ripton.net
Hi David, [David Ripton Fri, Nov 26, 2004 at 04:26:54AM -0800]
I just started playing with test.py, and so far it looks very nice. But I found one little bug so far.
(Is there a bug tracker?)
Not yet. There isn't even a release yet :-) Actually when we have the new codespeak machine + setup i hope to use trac for that.
Using test.py to test a method that raises a string exception (deprecated, I know) results in a fatal exception that ends the test. ...
Thanks for the example and bug report. It should be fixed now. cheers, holger
participants (2)
-
David Ripton -
hpk@trillke.net