Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e2c8d8

Browse files
committed
test_time: rewrite PyTime API rounding tests
Drop all hardcoded tests. Instead, reimplement each function in Python, usually using decimal.Decimal for the rounding mode. Add much more values to the dataset. Test various timestamp units from picroseconds to seconds, in integer and float. Enhance also _PyTime_AsSecondsDouble().
1 parent 9ae47df commit 3e2c8d8

2 files changed

Lines changed: 244 additions & 568 deletions

File tree

0 commit comments

Comments
 (0)