mirror of https://github.com/python/cpython.git
[3.11] gh-105089: Fix test_create_directory_with_write test failure in AIX (GH-105228) (GH-114861)
(cherry picked from commit 4dbb198d27
)
Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
This commit is contained in:
parent
9979635612
commit
e3458aa431
|
@ -2903,7 +2903,7 @@ def test_create_directory_with_write(self):
|
|||
|
||||
directory = os.path.join(TESTFN2, "directory2")
|
||||
os.mkdir(directory)
|
||||
mode = os.stat(directory).st_mode
|
||||
mode = os.stat(directory).st_mode & 0xFFFF
|
||||
zf.write(directory, arcname="directory2/")
|
||||
zinfo = zf.filelist[1]
|
||||
self.assertEqual(zinfo.filename, "directory2/")
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Fix
|
||||
``test.test_zipfile.test_core.TestWithDirectory.test_create_directory_with_write``
|
||||
test in AIX by doing a bitwise AND of 0xFFFF on mode , so that it will be in
|
||||
sync with ``zinfo.external_attr``
|
Loading…
Reference in New Issue