]> granicus.if.org Git - python/commit
Get command-line doctest of Lib/decimal.py to work again.
authorRaymond Hettinger <python@rcn.com>
Tue, 1 Feb 2011 23:54:43 +0000 (23:54 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 1 Feb 2011 23:54:43 +0000 (23:54 +0000)
commit6d7e26e95985f83bb0c3c137469af2f7df8936c4
treec75e479fae7952f8fa81c9649356900ec7e2bf1c
parent19cc9e183fabce48afade79f3598f277cab8cf0b
Get command-line doctest of Lib/decimal.py to work again.

If tested as '__main__' instead 'decimal', the tracebacks would
abbreviate 'decimal.Inexact' as 'Inexact', breaking the doctests.

(Reviewed by Antoine.)
Lib/decimal.py