diff options
| author | Pablo Galindo <Pablogsal@gmail.com> | 2017-10-17 15:14:41 +0100 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-10-17 17:14:41 +0300 |
| commit | 2c15b29aea5d6b9c61aa42d2c24a07ff1edb4b46 (patch) | |
| tree | b6b9f24a447144147ddd1959f90016106c077c05 /Lib/test/test_time.py | |
| parent | 552be9d7e64f91b8e4ba5b29cd5dcc442d56f92c (diff) | |
| download | cpython-git-2c15b29aea5d6b9c61aa42d2c24a07ff1edb4b46.tar.gz | |
bpo-31786: Make functions in the select module blocking when timeout is a small negative value. (#4003)
Diffstat (limited to 'Lib/test/test_time.py')
| -rw-r--r-- | Lib/test/test_time.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index c92e66bf49..61dda09c18 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -33,6 +33,8 @@ class _PyTime(enum.IntEnum): ROUND_CEILING = 1 # Round to nearest with ties going to nearest even integer ROUND_HALF_EVEN = 2 + # Round away from zero + ROUND_UP = 3 # Rounding modes supported by PyTime ROUNDING_MODES = ( @@ -40,6 +42,7 @@ ROUNDING_MODES = ( (_PyTime.ROUND_FLOOR, decimal.ROUND_FLOOR), (_PyTime.ROUND_CEILING, decimal.ROUND_CEILING), (_PyTime.ROUND_HALF_EVEN, decimal.ROUND_HALF_EVEN), + (_PyTime.ROUND_UP, decimal.ROUND_UP), ) |
