Skip to content

Commit 56c8d7c

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 3e534b4 commit 56c8d7c

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
@@ -1273,6 +1273,10 @@ def test_copyfile_same_file(self):
12731273
self.assertEqual(read_file(src_file), 'foo')
12741274

12751275
@unittest.skipIf(MACOS or SOLARIS or _winapi, 'On MACOS, Solaris and Windows the errors are not confusing (though different)')
1276+
# gh-92670: The test uses a trailing slash to force the OS consider
1277+
# the path as a directory, but on AIX the trailing slash has no effect
1278+
# and is considered as a file.
1279+
@unittest.skipIf(AIX, 'Not valid on AIX, see gh-92670')
12761280
def test_copyfile_nonexistent_dir(self):
12771281
# Issue 43219
12781282
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)