diff options
author | Christian Heimes <christian@cheimes.de> | 2013-11-26 00:32:15 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-11-26 00:32:15 (GMT) |
commit | ad39360a025185c7402838893861728a229d7d79 (patch) | |
tree | dfa1a0ee7e2d2c432aeebef09bd9e4b41c0007f8 /Lib | |
parent | 4dc74204c1a51b80fa5b1820bcf792cf89d72f3e (diff) | |
download | cpython-ad39360a025185c7402838893861728a229d7d79.zip cpython-ad39360a025185c7402838893861728a229d7d79.tar.gz cpython-ad39360a025185c7402838893861728a229d7d79.tar.bz2 |
Fix suspicious test case
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_statistics.py | 4 |
1 files 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: |