From 9cc5986a1a4c5a388370517661d8f71a97e155b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kul=C3=ADk?= Date: Tue, 11 Mar 2025 10:09:04 +0100 Subject: [PATCH] gh-130932: cwd cannot be removed on Solaris/Illumos (GH-131037) (cherry picked from commit 69309a55bcb5381a9a218edc910da135f4d67479) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jakub KulĂ­k --- Lib/test/test_import/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py index 9fd4dd4ed48e74..fe70ac7d8713c0 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -1204,6 +1204,7 @@ class substr(str): self.assertRegex(line, rb"cannot import name 'Fraction' from 'fractions' \(.*\)") @unittest.skipIf(sys.platform == 'win32', 'Cannot delete cwd on Windows') + @unittest.skipIf(sys.platform == 'sunos5', 'Cannot delete cwd on Solaris/Illumos') def test_script_shadowing_stdlib_cwd_failure(self): with os_helper.temp_dir() as tmp: subtmp = os.path.join(tmp, "subtmp")