gh-130932: cwd cannot be removed on Solaris/Illumos (#131037)

This commit is contained in:
Jakub Kulík 2025-03-11 10:09:04 +01:00 committed by GitHub
parent fe186d76cf
commit 69309a55bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1186,6 +1186,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")