Issue 2801:  fix bug in float.is_integer where ValueError was incorrectly
raised.
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index a748abb..76a5c2c 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -900,6 +900,7 @@
 		return NULL;
 	if (!Py_IS_FINITE(x))
 		Py_RETURN_FALSE;
+	errno = 0;
 	PyFPE_START_PROTECT("is_integer", return NULL)
 	o = (floor(x) == x) ? Py_True : Py_False;
 	PyFPE_END_PROTECT(x)