summaryrefslogtreecommitdiff
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-30 03:52:49 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-03-30 03:52:49 +0200
commit1e66db2443e7a814d39e2f2f7c252c310fb736cf (patch)
tree4ba5a12df031a3fb674bffd68332f7600632c4fc /Modules/_testcapimodule.c
parent1009dcff795fa243dc421295c66748f22f49403a (diff)
downloadcpython-1e66db2443e7a814d39e2f2f7c252c310fb736cf.tar.gz
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 128ba094b2..25f916beb9 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;
}