From eb0a892cc57288cc2c34277f3169329db157855a Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Sun, 14 Aug 2022 22:08:45 +0900 Subject: [PATCH 1/2] Use stable rust again --- .github/workflows/ci.yaml | 4 ++-- Lib/test/test_os.py | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6ec0ca08c..512527a32 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -108,7 +108,7 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@1.62.1 + - uses: dtolnay/rust-toolchain@stable - name: Set up the Windows environment shell: bash run: | @@ -210,7 +210,7 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@1.62.1 + - uses: dtolnay/rust-toolchain@stable - uses: actions/setup-python@v2 with: python-version: "3.10" diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 5582c3d25..eb1f80743 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -804,6 +804,8 @@ class UtimeTests(unittest.TestCase): # issue, os.utime() rounds towards minus infinity. return (ns * 1e-9) + 0.5e-9 + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_utime_by_indexed(self): # pass times as floating point seconds as the second indexed parameter def set_time(filename, ns): @@ -815,6 +817,8 @@ class UtimeTests(unittest.TestCase): os.utime(filename, (atime, mtime)) self._test_utime(set_time) + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_utime_by_times(self): def set_time(filename, ns): atime_ns, mtime_ns = ns From 020639e91b931f510cd3e9a4ad0ed93e5922b135 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Sun, 14 Aug 2022 22:32:44 +0900 Subject: [PATCH 2/2] Fix pwd clippy --- vm/src/stdlib/pwd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/stdlib/pwd.rs b/vm/src/stdlib/pwd.rs index 644c42279..a6a49dc1a 100644 --- a/vm/src/stdlib/pwd.rs +++ b/vm/src/stdlib/pwd.rs @@ -7,7 +7,7 @@ mod pwd { convert::{IntoPyException, ToPyObject}, exceptions, types::PyStructSequence, - AsObject, PyObjectRef, PyResult, VirtualMachine, + PyObjectRef, PyResult, VirtualMachine, }; use nix::unistd::{self, User}; use std::ptr::NonNull;