gh-92670: Skip test_shutil.TestCopy.test_copyfile_nonexistent_dir on AIX (GH-92718)

(cherry picked from commit 654032ac5f)

Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
This commit is contained in:
Miss Islington (bot) 2022-05-19 02:52:41 -07:00 committed by GitHub
parent 3e534b464a
commit 56c8d7cc83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -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()

View file

@ -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.