]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-102828: fix test failure (add missing skip instructions) (#102835)
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
Mon, 20 Mar 2023 00:03:55 +0000 (00:03 +0000)
committerGitHub <noreply@github.com>
Mon, 20 Mar 2023 00:03:55 +0000 (00:03 +0000)
Lib/test/test_shutil.py

index fee3e7f765639a790b4536a586238b1f98d6c848..89d65af3bc5b2b1c8a458e909f4c15fe4ad52408 100644 (file)
@@ -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