summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-30 01:57:14 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-30 01:57:14 (GMT)
commita695f83f0de060a77352174be8a5c6f6500ab98a (patch)
tree96ce032785c3d0503e2952e9b5794dbd3cd2dcfa /Modules/_testcapimodule.c
parent869e1778c0bcfc0928701c6ae0703934359d036b (diff)
downloadcpython-a695f83f0de060a77352174be8a5c6f6500ab98a.zip
cpython-a695f83f0de060a77352174be8a5c6f6500ab98a.tar.gz
cpython-a695f83f0de060a77352174be8a5c6f6500ab98a.tar.bz2
Issue #22117: Remove _PyTime_ROUND_DOWN and _PyTime_ROUND_UP rounding methods
Use _PyTime_ROUND_FLOOR and _PyTime_ROUND_CEILING instead.
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 25f916b..253efb6 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -2634,8 +2634,7 @@ run_in_subinterp(PyObject *self, PyObject *args)
static int
check_time_rounding(int round)
{
- if (round != _PyTime_ROUND_DOWN && round != _PyTime_ROUND_UP
- && round != _PyTime_ROUND_FLOOR && round != _PyTime_ROUND_CEILING) {
+ if (round != _PyTime_ROUND_FLOOR && round != _PyTime_ROUND_CEILING) {
PyErr_SetString(PyExc_ValueError, "invalid rounding");
return -1;
}