diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index 7cf263972ba5fe..768d4b46794652 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -36,6 +36,7 @@ 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 @@ def test_copyfile_same_file(self): # 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()