[pypy-svn] pypy shorter-float-repr: This does not raise anymore: the result is small enough

amauryfa commits-noreply at bitbucket.org
Sat Jan 22 00:11:59 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: shorter-float-repr
Changeset: r41191:2da69d3962d5
Date: 2011-01-21 22:42 +0100
http://bitbucket.org/pypy/pypy/changeset/2da69d3962d5/

Log:	This does not raise anymore: the result is small enough

diff --git a/pypy/objspace/std/test/test_stringformat.py b/pypy/objspace/std/test/test_stringformat.py
--- a/pypy/objspace/std/test/test_stringformat.py
+++ b/pypy/objspace/std/test/test_stringformat.py
@@ -248,7 +248,7 @@
         def f(fmt, x):
             return fmt % x
         raises(OverflowError, f, "%.70f", 2.0)
-        raises(OverflowError, f, "%.110g", 2.0)
+        assert '%.110g' % 2.0 == '2'
 
     def test_subnormal(self):
         inf = 1e300 * 1e300


More information about the Pypy-commit mailing list