`std::time::Duration::from_secs_f64` behavior is changed in Rust 1.63. related python test: - `test_os::test_utime_by_indexed` - `test_os::test_utime_by_times` test command: - `cargo +stable run Lib/test/test_os.py -k utime -v` - `cargo +1.62.1 run Lib/test/test_os.py -k utime -v` Rust issue including minimal reproducible code - https://github.com/rust-lang/rust/issues/100480 # To-do We will stay on 1.62.1 until checking if it is a rust bug or intended change. Once it is resolved: - Revert CI changes #4046
Activity
youknowone commentedon Aug 13, 2022
In CPython,
_PyTime_DoubleToDenominatorprovides rounding option. floor option is passed for this path.youknowone commentedon Aug 17, 2022
It was an intended behavior change from Rust. we need to implement rounding option like cpython.
youknowone commentedon Dec 25, 2025
The test is changed not to check nanosecond drift #6501