From e95729e9d1bfe0001e08aa8ddd193918d150008d Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 9 Aug 2010 21:25:17 +0200 Subject: [PATCH] do not rely on floating point string representation in tests --- tests/run/r_addint.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/run/r_addint.pyx b/tests/run/r_addint.pyx index 098ef5b2..4a724e22 100644 --- a/tests/run/r_addint.pyx +++ b/tests/run/r_addint.pyx @@ -4,8 +4,8 @@ __doc__ = u""" >>> test(1, 2) (1, 2, 3) - >>> [ str(f) for f in test(17.3, 88.6) ] - ['17.3', '88.6', '105.9'] + >>> [ repr(f) for f in test(17.25, 88.5) ] + ['17.25', '88.5', '105.75'] >>> test(u'eggs', u'spam') (u'eggs', u'spam', u'eggsspam') """ -- 2.26.2