diff --git a/Lib/decimal.py b/Lib/decimal.py index 1fe938f06c4..c387de60b63 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)