[Python-checkins] [3.9] bpo-43219: skip Solaris in the test as well (GH-27257) (GH-27267)

miss-islington webhook-mailer at python.org
Tue Jul 20 14:45:12 EDT 2021


https://github.com/python/cpython/commit/dae4928dd07109db69e090b1c8193a023ce695cd
commit: dae4928dd07109db69e090b1c8193a023ce695cd
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-07-20T11:44:58-07:00
summary:

[3.9] bpo-43219: skip Solaris in the test as well (GH-27257) (GH-27267)



(cherry picked from commit 6564656495d456a1bcc1aaa06abfc696209f37b2)


Co-authored-by: Jakub Kulík <Kulikjak at gmail.com>

Automerge-Triggered-By: GH:gpshead

files:
M Lib/test/test_shutil.py

diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index 7cf263972ba5f..768d4b4679465 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()



More information about the Python-checkins mailing list