8000 gh-105089: Fix test_create_directory_with_write test failure in AIX (… · python/cpython@4dbb198 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4dbb198

Browse files
authored
gh-105089: Fix test_create_directory_with_write test failure in AIX (GH-105228)
1 parent 0bf42da commit 4dbb198

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Lib/test/test_zipfile/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2959,7 +2959,7 @@ def test_create_directory_with_write(self):
29592959

29602960
directory = os.path.join(TESTFN2, "directory2")
29612961
os.mkdir(directory)
2962-
mode = os.stat(directory).st_mode
2962+
mode = os.stat(directory).st_mode & 0xFFFF
29632963
zf.write(directory, arcname="directory2/")
29642964
zinfo = zf.filelist[1]
29652965
self.assertEqual(zinfo.filename, "directory2/")
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Fix
2+
``test.test_zipfile.test_core.TestWithDirectory.test_create_directory_with_write``
3+
test in AIX by doing a bitwise AND of 0xFFFF on mode , so that it will be in
4+
sync with ``zinfo.external_attr``

0 commit comments

Comments
 (0)
0