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.
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index abea975..29c3b32 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -1417,7 +1417,7 @@
>>> float.fromhex('0x1.ffffp10')\n\
2047.984375\n\
>>> float.fromhex('-0x1p-1074')\n\
--4.9406564584124654e-324");
+-5e-324");
static PyObject *