diff Objects/floatobject.c @ 87489:95dc3054959b

Issue #3158: doctest can now find doctests in functions and methods written in C. As a part of this, a few doctests have been added to the builtins module (on hex(), oct(), and bin()), a doctest has been fixed (hopefully on all platforms) on float, and test_builtins now runs doctests in builtins.
author Zachary Ware <zachary.ware@gmail.com>
date Sun, 24 Nov 2013 01:19:09 -0600
parents a73c47c1d374
children
line wrap: on
line diff
--- a/Objects/floatobject.c	Sun Nov 24 14:58:31 2013 +1000
+++ b/Objects/floatobject.c	Sun Nov 24 01:19:09 2013 -0600
@@ -1417,7 +1417,7 @@
 >>> float.fromhex('0x1.ffffp10')\n\
 2047.984375\n\
 >>> float.fromhex('-0x1p-1074')\n\
--4.9406564584124654e-324");
+-5e-324");
 
 
 static PyObject *