From 6d7e26e95985f83bb0c3c137469af2f7df8936c4 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Tue, 1 Feb 2011 23:54:43 +0000 Subject: 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/decimal.py b/Lib/decimal.py index 1fe938f..c387de6 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -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) -- cgit v0.12