From: Stefan Behnel Date: Mon, 9 Aug 2010 19:25:17 +0000 (+0200) Subject: do not rely on floating point string representation in tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e95729e9d1bfe0001e08aa8ddd193918d150008d;p=cython.git do not rely on floating point string representation in tests --- 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') """