Skip to content

Commit ad2363d

Browse files
gh-92670: Skip test_shutil.TestCopy.test_copyfile_nonexistent_dir on AIX (GH-92718)
(cherry picked from commit 654032a) Co-authored-by: Ayappan Perumal <[email protected]>
1 parent 17a62d1 commit ad2363d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Lib/test/test_shutil.py

+4
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,10 @@ def test_copyfile_same_file(self):
12941294
self.assertEqual(read_file(src_file), 'foo')
12951295

12961296
@unittest.skipIf(MACOS or SOLARIS or _winapi, 'On MACOS, Solaris and Windows the errors are not confusing (though different)')
1297+
# gh-92670: The test uses a trailing slash to force the OS consider
1298+
# the path as a directory, but on AIX the trailing slash has no effect
1299+
# and is considered as a file.
1300+
@unittest.skipIf(AIX, 'Not valid on AIX, see gh-92670')
12971301
def test_copyfile_nonexistent_dir(self):
12981302
# Issue 43219
12991303
src_dir = self.mkdtemp()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Skip ``test_shutil.TestCopy.test_copyfile_nonexistent_dir`` test on AIX as the test uses a trailing
2+
slash to force the OS consider the path as a directory, but on AIX the
3+
trailing slash has no effect and is considered as a file.

0 commit comments

Comments
 (0)