From: Stefan Krah Date: Sun, 1 Apr 2012 21:25:34 +0000 (+0200) Subject: Fix Overflow exception in the bignum factorial benchmark that is due to X-Git-Tag: v3.3.0a3~338 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41e031004bd156ea579a35d8e1d74cafe8dac3e0;p=python Fix Overflow exception in the bignum factorial benchmark that is due to the recent change of the default value for context.Emax. --- diff --git a/Modules/_decimal/tests/bench.py b/Modules/_decimal/tests/bench.py index 013f0f666b..ea0823a0da 100644 --- a/Modules/_decimal/tests/bench.py +++ b/Modules/_decimal/tests/bench.py @@ -84,7 +84,10 @@ print("\n# ===================================================================== print("# Factorial") print("# ======================================================================\n") -C.getcontext().prec = C.MAX_PREC +c = C.getcontext() +c.prec = C.MAX_PREC +c.Emax = C.MAX_EMAX +c.Emin = C.MIN_EMIN for n in [100000, 1000000]: