[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 69309a55bc)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-03-11 10:33:50 +01:00 committed by GitHub
parent c7022230d2
commit 3e173e505a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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")