[pypy-svn] r13927 - pypy/dist/pypy/objspace/std/test

ac at codespeak.net ac at codespeak.net
Sun Jun 26 12:36:57 CEST 2005


Author: ac
Date: Sun Jun 26 12:36:57 2005
New Revision: 13927

Modified:
   pypy/dist/pypy/objspace/std/test/test_unicodestring.py
Log:
Make the test_float_from_unicode not rely on the accuracy of
the string_to_float conversion.



Modified: pypy/dist/pypy/objspace/std/test/test_unicodestring.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_unicodestring.py	(original)
+++ pypy/dist/pypy/objspace/std/test/test_unicodestring.py	Sun Jun 26 12:36:57 2005
@@ -72,4 +72,4 @@
         assert int(u'12345') == 12345
 
     def test_float_from_unicode(self):
-        assert float(u'123.456e89') == 123.456e89
+        assert float(u'123.456e89') == float('123.456e89')



More information about the Pypy-commit mailing list