Skip to content

Commit

Permalink
pythongh-105089: Fix test_create_directory_with_write test failure in…
Browse files Browse the repository at this point in the history
… AIX (pythonGH-105228)
  • Loading branch information
ayappanec authored Feb 1, 2024
1 parent 0bf42da commit 4dbb198
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_zipfile/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2959,7 +2959,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/")
Expand Down
Original file line number Diff line number Diff line change
@@ -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``

0 comments on commit 4dbb198

Please sign in to comment.