summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_time.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-29 22:44:06 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-29 22:44:06 (GMT)
commitf81f0f9c63c8ae306d550b5bb387abf30e60a668 (patch)
treef73f88019eba031edb39608f7d5b656906953a7d /Lib/test/test_time.py
parent1bd18ba9a78c58b817564637f1937c2bc3920ecd (diff)
downloadcpython-f81f0f9c63c8ae306d550b5bb387abf30e60a668.zip
cpython-f81f0f9c63c8ae306d550b5bb387abf30e60a668.tar.gz
cpython-f81f0f9c63c8ae306d550b5bb387abf30e60a668.tar.bz2
Issue #22117: Fix rounding and implement _PyTime_ROUND_FLOOR in:
- _PyTime_ObjectToTime_t() - _PyTime_ObjectToTimespec() - _PyTime_ObjectToTimeval()
Diffstat (limited to 'Lib/test/test_time.py')
-rw-r--r--Lib/test/test_time.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
index b0c97d5..bcbf41d 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -647,13 +647,13 @@ class TestPytime(unittest.TestCase):
(1e-9, (0, 1), _PyTime.ROUND_DOWN),
(1e-10, (0, 0), _PyTime.ROUND_DOWN),
(-1e-9, (-1, 999999999), _PyTime.ROUND_DOWN),
- (-1e-10, (-1, 999999999), _PyTime.ROUND_DOWN),
+ (-1e-10, (0, 0), _PyTime.ROUND_DOWN),
(-1.2, (-2, 800000000), _PyTime.ROUND_DOWN),
(0.9999999999, (0, 999999999), _PyTime.ROUND_DOWN),
(1.1234567890, (1, 123456789), _PyTime.ROUND_DOWN),
(1.1234567899, (1, 123456789), _PyTime.ROUND_DOWN),
(-1.1234567890, (-2, 876543211), _PyTime.ROUND_DOWN),
- (-1.1234567891, (-2, 876543210), _PyTime.ROUND_DOWN),
+ (-1.1234567891, (-2, 876543211), _PyTime.ROUND_DOWN),
# Round away from zero
(0, (0, 0), _PyTime.ROUND_UP),
(-1, (-1, 0), _PyTime.ROUND_UP),