]> granicus.if.org Git - python/commit
Get doctest to pass. The problem was int/int -> float now. There
authorNeal Norwitz <nnorwitz@gmail.com>
Wed, 22 Mar 2006 09:20:30 +0000 (09:20 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Wed, 22 Mar 2006 09:20:30 +0000 (09:20 +0000)
commit914a81841f881122f95eb5a9330a3ef96de174cd
tree31cbc47bc08ffc432bcf58c777d564e6417aebdf
parent57c179c5b92f1cbe21e23b514f34f75e0d32bbfb
Get doctest to pass.  The problem was int/int -> float now.  There
were some cases where an int was assumed.

Also had to change the string of the exception when dividing and int by zero.
Not sure what the best error message should be.  Currently
  5 / 0 yields the message: ZeroDivisionError: float division

That isn't entirely correct.  But I'm not sure what else to do.
Lib/test/test_doctest.py