From b7ede0b27fdee9e873323963aa242127007788b6 Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Thu, 17 Jan 2013 23:20:46 +0100 Subject: [PATCH] Choose float values that have no rounding issue on python 2.5 for the float multiplication test --- wsme/tests/test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wsme/tests/test_api.py b/wsme/tests/test_api.py index bab433d..d42e1ff 100644 --- a/wsme/tests/test_api.py +++ b/wsme/tests/test_api.py @@ -210,11 +210,11 @@ class TestController(unittest.TestCase): self.assertEquals(res.body, b('10')) - res = app.get('/mul_float?a=2.2&b=4', headers={ + res = app.get('/mul_float?a=1.2&b=2.9', headers={ 'Accept': 'application/json' }) - self.assertEquals(res.body, b('8.8')) + self.assertEquals(res.body, b('3.48')) res = app.get('/mul_string?a=hello&b=2', headers={ 'Accept': 'application/json'