changeset 87573:976e41a50022

Fix suspicious test case
author Christian Heimes <christian@cheimes.de>
date Tue, 26 Nov 2013 01:32:15 +0100
parents 02668e24d72d
children 1640b3bdd5b6
files Lib/test/test_statistics.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/test/test_statistics.py	Tue Nov 26 01:18:52 2013 +0100
+++ b/Lib/test/test_statistics.py	Tue Nov 26 01:32:15 2013 +0100
@@ -271,9 +271,9 @@
         # 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: