mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
gh-105089: Fix test_create_directory_with_write test failure in AIX (GH-105228)
This commit is contained in:
parent
0bf42dae7e
commit
4dbb198d27
2 changed files with 5 additions and 1 deletions
|
@ -2959,7 +2959,7 @@ class TestWithDirectory(unittest.TestCase):
|
|||
|
||||
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…
Add table
Add a link
Reference in a new issue