summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-10 08:10:39 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-09-10 08:10:39 (GMT)
commit4237d3474c4792472009c6c6c5d46a7f7ab1410d (patch)
tree16d8435e1868d79970a0384ca65db4313b0c2e44 /Modules
parent9c72f9b30a60d09c10b6cde23bd4b0546c6947af (diff)
downloadcpython-4237d3474c4792472009c6c6c5d46a7f7ab1410d.zip
cpython-4237d3474c4792472009c6c6c5d46a7f7ab1410d.tar.gz
cpython-4237d3474c4792472009c6c6c5d46a7f7ab1410d.tar.bz2
Fix test_time on platform with 32-bit time_t type
Filter values which would overflow when converted to a C time_t type.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_testcapimodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index fed3286..1f013c2 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -4114,6 +4114,7 @@ PyInit__testcapi(void)
PyModule_AddObject(m, "PY_SSIZE_T_MAX", PyLong_FromSsize_t(PY_SSIZE_T_MAX));
PyModule_AddObject(m, "PY_SSIZE_T_MIN", PyLong_FromSsize_t(PY_SSIZE_T_MIN));
PyModule_AddObject(m, "SIZEOF_PYGC_HEAD", PyLong_FromSsize_t(sizeof(PyGC_Head)));
+ PyModule_AddObject(m, "SIZEOF_TIME_T", PyLong_FromSsize_t(sizeof(time_t)));
Py_INCREF(&PyInstanceMethod_Type);
PyModule_AddObject(m, "instancemethod", (PyObject *)&PyInstanceMethod_Type);