[Python-checkins] r82754 - python/branches/release31-maint/Python/pystrtod.c
mark.dickinson
python-checkins at python.org
Fri Jul 9 22:10:37 CEST 2010
Author: mark.dickinson
Date: Fri Jul 9 22:10:37 2010
New Revision: 82754
Log:
Another temporary checkin to diagnose test_float failure on 3.1 Ubuntu buildbot.
Modified:
python/branches/release31-maint/Python/pystrtod.c
Modified: python/branches/release31-maint/Python/pystrtod.c
==============================================================================
--- python/branches/release31-maint/Python/pystrtod.c (original)
+++ python/branches/release31-maint/Python/pystrtod.c Fri Jul 9 22:10:37 2010
@@ -1001,9 +1001,17 @@
else {
/* shouldn't get here: Gay's code should always return
something starting with a digit, an 'I', or 'N' */
- strncpy(p, "ERR", 3);
- p += 3;
- /* assert(0); */
+ printf("Unexpected failure in format_float_short. "
+ "Arguments: d = %.17g, format_code = %d, "
+ "mode = %d, precision = %ld\n",
+ d, format_code, mode, precision);
+ printf("digits == %.100s\n", digits);
+ PyErr_Format(PyExc_RuntimeError,
+ "Unexpected failure in format_float_short. "
+ "Arguments: d = %.17g, format_code = %d, "
+ "mode = %d, precision = %ld\n",
+ d, format_code, mode, precision);
+ return NULL;
}
goto exit;
}
More information about the Python-checkins
mailing list