[Python-checkins] r88302 - python/branches/py3k/Lib/decimal.py
raymond.hettinger
python-checkins at python.org
Wed Feb 2 00:54:43 CET 2011
Author: raymond.hettinger
Date: Wed Feb 2 00:54:43 2011
New Revision: 88302
Log:
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.)
Modified:
python/branches/py3k/Lib/decimal.py
Modified: python/branches/py3k/Lib/decimal.py
==============================================================================
--- python/branches/py3k/Lib/decimal.py (original)
+++ python/branches/py3k/Lib/decimal.py Wed Feb 2 00:54:43 2011
@@ -6245,5 +6245,5 @@
if __name__ == '__main__':
- import doctest, sys
- doctest.testmod(sys.modules[__name__])
+ import doctest, decimal
+ doctest.testmod(decimal)
More information about the Python-checkins
mailing list