@@ -1375,16 +1375,13 @@ def run(func, *args):
13751375 @support .cpython_only # Other implementations may choose a different algorithm
13761376 @support .requires_resource ('cpu' )
13771377 def test_sumprod_extended_precision_accuracy (self ):
1378- sumprod = math .sumprod
13791378 import operator
13801379 from fractions import Fraction
13811380 from itertools import starmap
13821381 from collections import namedtuple
1383- from math import log2 , exp2 , log10 , fabs
1382+ from math import log2 , exp2 , fabs
13841383 from random import choices , uniform , shuffle
13851384 from statistics import median
1386- from functools import partial
1387- from pprint import pp
13881385
13891386 DotExample = namedtuple ('DotExample' , ('x' , 'y' , 'target_sumprod' , 'condition' ))
13901387
@@ -1452,7 +1449,7 @@ def Trial(dotfunc, c, n):
14521449 n = 20 # Length of vectors
14531450 c = 1e30 # Target condition number
14541451
1455- relative_err = median (Trial (sumprod , c , n ) for i in range (times ))
1452+ relative_err = median (Trial (math . sumprod , c , n ) for i in range (times ))
14561453 self .assertLess (relative_err , 1e-16 )
14571454
14581455 def testModf (self ):
0 commit comments