summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-30 01:52:49 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-30 01:52:49 (GMT)
commitbcdd777d3c01a6db3b4357922663624ef617e65a (patch)
tree89c64b79fd8d7d515bcece608063019cfad79bfd /Modules/_testcapimodule.c
parentc4bb599be091ae92cfbe47e82a6d18f39c11443e (diff)
downloadcpython-bcdd777d3c01a6db3b4357922663624ef617e65a.zip
cpython-bcdd777d3c01a6db3b4357922663624ef617e65a.tar.gz
cpython-bcdd777d3c01a6db3b4357922663624ef617e65a.tar.bz2
Issue #22117: Add _PyTime_ROUND_CEILING rounding method for timestamps
Add also more tests for ROUNd_FLOOR.
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 128ba09..25f916b 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -2635,7 +2635,7 @@ static int
check_time_rounding(int round)
{
if (round != _PyTime_ROUND_DOWN && round != _PyTime_ROUND_UP
- && round != _PyTime_ROUND_FLOOR) {
+ && round != _PyTime_ROUND_FLOOR && round != _PyTime_ROUND_CEILING) {
PyErr_SetString(PyExc_ValueError, "invalid rounding");
return -1;
}