]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92670: Skip test_shutil.TestCopy.test_copyfile_nonexistent_dir on AIX (#92718)
authorAyappan Perumal <ayappap2@in.ibm.com>
Thu, 19 May 2022 09:17:44 +0000 (14:47 +0530)
committerGitHub <noreply@github.com>
Thu, 19 May 2022 09:17:44 +0000 (11:17 +0200)
Lib/test/test_shutil.py
Misc/NEWS.d/next/Tests/2022-05-12-05-51-06.gh-issue-92670.7L43Z_.rst [new file with mode: 0644]

index 700338634528058f50891afe0b09fa411c2580ea..a61bb126e4e73f845f5e06893622e96e1fa54ea9 100644 (file)
@@ -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()
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 (file)
index 0000000..c134951
--- /dev/null
@@ -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.