Kaydet (Commit) 6d7e26e9 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

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.)
üst 19cc9e18
......@@ -6245,5 +6245,5 @@ _PyHASH_10INV = pow(10, _PyHASH_MODULUS - 2, _PyHASH_MODULUS)
if __name__ == '__main__':
import doctest, sys
doctest.testmod(sys.modules[__name__])
import doctest, decimal
doctest.testmod(decimal)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment