Skip to content

Commit a6f2324

Browse files
committed
Apply patch
1 parent ad061b2 commit a6f2324

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_os.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,9 @@ def ns_to_sec(ns):
830830
# Convert a number of nanosecond (int) to a number of seconds (float).
831831
# Round towards infinity by adding 0.5 nanosecond to avoid rounding
832832
# issue, os.utime() rounds towards minus infinity.
833-
return (ns * 1e-9) + 0.5e-9
833+
# 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)
834836

835837
def test_utime_by_indexed(self):
836838
# pass times as floating-point seconds as the second indexed parameter

0 commit comments

Comments
 (0)