summaryrefslogtreecommitdiff
path: root/Lib/test/test_shutil.py
diff options
context:
space:
mode:
authorAyappan Perumal <ayappap2@in.ibm.com>2022-05-19 14:47:44 +0530
committerGitHub <noreply@github.com>2022-05-19 11:17:44 +0200
commit654032ac5f6982b36d45e024037f37fb65166aed (patch)
treefa2c9d709591ae3233db73d8dbd2bbbe06e9510e /Lib/test/test_shutil.py
parent60ee61571a60bcf4e40a4074e8db356b5af793c1 (diff)
downloadcpython-git-654032ac5f6982b36d45e024037f37fb65166aed.tar.gz
gh-92670: Skip test_shutil.TestCopy.test_copyfile_nonexistent_dir on AIX (#92718)
Diffstat (limited to 'Lib/test/test_shutil.py')
-rw-r--r--Lib/test/test_shutil.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index 7003386345..a61bb126e4 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -1294,6 +1294,10 @@ class TestCopy(BaseTest, unittest.TestCase):
self.assertEqual(read_file(src_file), 'foo')
@unittest.skipIf(MACOS or SOLARIS or _winapi, 'On MACOS, Solaris and Windows the errors are not confusing (though different)')
+ # gh-92670: The test uses a trailing slash to force the OS consider
+ # the path as a directory, but on AIX the trailing slash has no effect
+ # and is considered as a file.
+ @unittest.skipIf(AIX, 'Not valid on AIX, see gh-92670')
def test_copyfile_nonexistent_dir(self):
# Issue 43219
src_dir = self.mkdtemp()