From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Mon, 20 Mar 2023 00:03:55 +0000 (+0000) Subject: gh-102828: fix test failure (add missing skip instructions) (#102835) X-Git-Tag: v3.12.0a7~128 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=40d4f1579382a16d95ec67f2f03167bc1181dbd9;p=thirdparty%2FPython%2Fcpython.git gh-102828: fix test failure (add missing skip instructions) (#102835) --- diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index fee3e7f76563..89d65af3bc5b 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -496,6 +496,10 @@ class TestRmTree(BaseTest, unittest.TestCase): self.assertTrue(isinstance(exc, OSError)) self.errorState = 3 + @unittest.skipIf(sys.platform[:6] == 'cygwin', + "This test can't be run on Cygwin (issue #1071513).") + @os_helper.skip_if_dac_override + @os_helper.skip_unless_working_chmod def test_both_onerror_and_onexc(self): onerror_called = False onexc_called = False