]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-130932: cwd cannot be removed on Solaris/Illumos (GH-131037) (#131073)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Mar 2025 09:33:50 +0000 (10:33 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Mar 2025 09:33:50 +0000 (09:33 +0000)
gh-130932: cwd cannot be removed on Solaris/Illumos (GH-131037)
(cherry picked from commit 69309a55bcb5381a9a218edc910da135f4d67479)

Co-authored-by: Jakub KulĂ­k <Kulikjak@gmail.com>
Lib/test/test_import/__init__.py

index 9fd4dd4ed48e744457a7e297ff0d4d06c380d5ef..fe70ac7d8713c0620a47cbd8f9e7b4296d39aa06 100644 (file)
@@ -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")