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 ad061b2 commit a6f2324Copy full SHA for a6f2324
Lib/test/test_os.py
@@ -830,7 +830,9 @@ def ns_to_sec(ns):
830
# Convert a number of nanosecond (int) to a number of seconds (float).
831
# Round towards infinity by adding 0.5 nanosecond to avoid rounding
832
# issue, os.utime() rounds towards minus infinity.
833
- 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)`
834
+ # return (ns * 1e-9) + 0.5e-9
835
+ return (ns * 1e-9)
836
837
def test_utime_by_indexed(self):
838
# pass times as floating-point seconds as the second indexed parameter
0 commit comments