do not rely on floating point string representation in tests
authorStefan Behnel <scoder@users.berlios.de>
Mon, 9 Aug 2010 19:25:17 +0000 (21:25 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 9 Aug 2010 19:25:17 +0000 (21:25 +0200)
tests/run/r_addint.pyx

index 098ef5b2810801513203a208e07cb5807666f230..4a724e22487e0398a17ecf47feac89d0c92cb1e1 100644 (file)
@@ -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')
 """