We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9622114 commit bfb3839Copy full SHA for bfb3839
Lib/test/test_os.py
@@ -829,7 +829,9 @@ def ns_to_sec(ns):
829
# Convert a number of nanosecond (int) to a number of seconds (float).
830
# Round towards infinity by adding 0.5 nanosecond to avoid rounding
831
# issue, os.utime() rounds towards minus infinity.
832
- return (ns * 1e-9) + 0.5e-9
+ # XXX: RUSTPYTHON os.utime() use `[Duration::from_secs_f64](https://doc.rust-lang.org/std/time/struct.Duration.html#method.try_from_secs_f64)`
833
+ # return (ns * 1e-9) + 0.5e-9
834
+ return (ns * 1e-9)
835
836
def test_utime_by_indexed(self):
837
# pass times as floating-point seconds as the second indexed parameter
0 commit comments