From: Christian Heimes Date: Tue, 26 Nov 2013 00:32:15 +0000 (+0100) Subject: Fix suspicious test case X-Git-Tag: v3.4.0b2~473 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad39360a025185c7402838893861728a229d7d79;p=thirdparty%2FPython%2Fcpython.git Fix suspicious test case --- diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py index 71b365452669..ee585e2c1c1c 100644 --- a/Lib/test/test_statistics.py +++ b/Lib/test/test_statistics.py @@ -271,9 +271,9 @@ class ApproxEqualSymmetryTest(unittest.TestCase): # Test that approx_equal(a, b) == approx_equal(b, a) args = [-23, -2, 5, 107, 93568] delta = 2 - for x in args: + for a in args: for type_ in (int, float, Decimal, Fraction): - x = type_(x)*100 + x = type_(a)*100 y = x + delta r = abs(delta/max(x, y)) # There are five cases to check: