Commit e95729e9 authored by Stefan Behnel's avatar Stefan Behnel

do not rely on floating point string representation in tests

parent 5dd72bd0
...@@ -4,8 +4,8 @@ __doc__ = u""" ...@@ -4,8 +4,8 @@ __doc__ = u"""
>>> test(1, 2) >>> test(1, 2)
(1, 2, 3) (1, 2, 3)
>>> [ str(f) for f in test(17.3, 88.6) ] >>> [ repr(f) for f in test(17.25, 88.5) ]
['17.3', '88.6', '105.9'] ['17.25', '88.5', '105.75']
>>> test(u'eggs', u'spam') >>> test(u'eggs', u'spam')
(u'eggs', u'spam', u'eggsspam') (u'eggs', u'spam', u'eggsspam')
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment