aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Modules/_testcapi/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_testcapi/time.c')
-rw-r--r--Modules/_testcapi/time.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_testcapi/time.c b/Modules/_testcapi/time.c
index 464cf5c3125..4ca6ff587b9 100644
--- a/Modules/_testcapi/time.c
+++ b/Modules/_testcapi/time.c
@@ -5,8 +5,7 @@ static int
pytime_from_nanoseconds(PyTime_t *tp, PyObject *obj)
{
if (!PyLong_Check(obj)) {
- PyErr_Format(PyExc_TypeError, "expect int, got %s",
- Py_TYPE(obj)->tp_name);
+ PyErr_Format(PyExc_TypeError, "expect int, got %T", obj);
return -1;
}