summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-19 02:52:41 -0700
committerGitHub <noreply@github.com>2022-05-19 02:52:41 -0700
commit56c8d7cc83fbc944b78b7685828f1990fbd017da (patch)
tree11c59e2ac13261c530c89d42168b2e9ab9390d2b
parent3e534b464af77cade6295d1f18619f33c8b7ba70 (diff)
downloadcpython-git-56c8d7cc83fbc944b78b7685828f1990fbd017da.tar.gz
gh-92670: Skip test_shutil.TestCopy.test_copyfile_nonexistent_dir on AIX (GH-92718)
(cherry picked from commit 654032ac5f6982b36d45e024037f37fb65166aed) Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
-rw-r--r--Lib/test/test_shutil.py4
-rw-r--r--Misc/NEWS.d/next/Tests/2022-05-12-05-51-06.gh-issue-92670.7L43Z_.rst3
2 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index 7669b94ac3..f1d8f5a8b6 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -1273,6 +1273,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()
diff --git a/Misc/NEWS.d/next/Tests/2022-05-12-05-51-06.gh-issue-92670.7L43Z_.rst b/Misc/NEWS.d/next/Tests/2022-05-12-05-51-06.gh-issue-92670.7L43Z_.rst
new file mode 100644
index 0000000000..c1349519e7
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2022-05-12-05-51-06.gh-issue-92670.7L43Z_.rst
@@ -0,0 +1,3 @@
+Skip ``test_shutil.TestCopy.test_copyfile_nonexistent_dir`` test on AIX as 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.