]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] bpo-43219: skip Solaris in the test as well (GH-27257) (GH-27267)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 20 Jul 2021 18:44:58 +0000 (11:44 -0700)
committerGitHub <noreply@github.com>
Tue, 20 Jul 2021 18:44:58 +0000 (11:44 -0700)
(cherry picked from commit 6564656495d456a1bcc1aaa06abfc696209f37b2)

Co-authored-by: Jakub KulĂ­k <Kulikjak@gmail.com>
Automerge-Triggered-By: GH:gpshead
Lib/test/test_shutil.py

index 7cf263972ba5fe47a77d02b293f8abf08859fc1b..768d4b46794652a4da127712513589f6f0c3df69 100644 (file)
@@ -36,6 +36,7 @@ TESTFN2 = TESTFN + "2"
 TESTFN_SRC = TESTFN + "_SRC"
 TESTFN_DST = TESTFN + "_DST"
 MACOS = sys.platform.startswith("darwin")
+SOLARIS = sys.platform.startswith("sunos")
 AIX = sys.platform[:3] == 'aix'
 try:
     import grp
@@ -1243,7 +1244,7 @@ class TestCopy(BaseTest, unittest.TestCase):
         # Make sure file is not corrupted.
         self.assertEqual(read_file(src_file), 'foo')
 
-    @unittest.skipIf(MACOS or _winapi, 'On MACOS and Windows the errors are not confusing (though different)')
+    @unittest.skipIf(MACOS or SOLARIS or _winapi, 'On MACOS, Solaris and Windows the errors are not confusing (though different)')
     def test_copyfile_nonexistent_dir(self):
         # Issue 43219
         src_dir = self.mkdtemp()