From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 11 Mar 2025 09:33:50 +0000 (+0100) Subject: [3.13] gh-130932: cwd cannot be removed on Solaris/Illumos (GH-131037) (#131073) X-Git-Tag: v3.13.3~144 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e173e505a5267bbf8c372ffea9d1e9e7f67c5bd;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-130932: cwd cannot be removed on Solaris/Illumos (GH-131037) (#131073) gh-130932: cwd cannot be removed on Solaris/Illumos (GH-131037) (cherry picked from commit 69309a55bcb5381a9a218edc910da135f4d67479) Co-authored-by: Jakub KulĂ­k --- diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py index 9fd4dd4ed48e..fe70ac7d8713 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -1204,6 +1204,7 @@ except ImportError as e: 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")