Skip to content

Commit dae4928

Browse files
[3.9] bpo-43219: skip Solaris in the test as well (GH-27257) (GH-27267)
(cherry picked from commit 6564656) Co-authored-by: Jakub Kulík <[email protected]> Automerge-Triggered-By: GH:gpshead
1 parent 585e5b2 commit dae4928

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_shutil.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
TESTFN_SRC = TESTFN + "_SRC"
3737
TESTFN_DST = TESTFN + "_DST"
3838
MACOS = sys.platform.startswith("darwin")
39+
SOLARIS = sys.platform.startswith("sunos")
3940
AIX = sys.platform[:3] == 'aix'
4041
try:
4142
import grp
@@ -1243,7 +1244,7 @@ def test_copyfile_same_file(self):
12431244
# Make sure file is not corrupted.
12441245
self.assertEqual(read_file(src_file), 'foo')
12451246

1246-
@unittest.skipIf(MACOS or _winapi, 'On MACOS and Windows the errors are not confusing (though different)')
1247+
@unittest.skipIf(MACOS or SOLARIS or _winapi, 'On MACOS, Solaris and Windows the errors are not confusing (though different)')
12471248
def test_copyfile_nonexistent_dir(self):
12481249
# Issue 43219
12491250
src_dir = self.mkdtemp()

0 commit comments

Comments
 (0)