From ad39360a025185c7402838893861728a229d7d79 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 26 Nov 2013 01:32:15 +0100 Subject: Fix suspicious test case --- Lib/test/test_statistics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py index 71b3654..ee585e2 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: -- cgit v0.12