-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_create_directory_with_write in test_zipfile fails in AIX #105089
Comments
ayappanec
added a commit
to ayappanec/cpython
that referenced
this issue
Jun 2, 2023
ayappanec
added a commit
to ayappanec/cpython
that referenced
this issue
Sep 7, 2023
serhiy-storchaka
added a commit
to ayappanec/cpython
that referenced
this issue
Feb 1, 2024
serhiy-storchaka
pushed a commit
that referenced
this issue
Feb 1, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 1, 2024
… AIX (pythonGH-105228) (cherry picked from commit 4dbb198) Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 1, 2024
… AIX (pythonGH-105228) (cherry picked from commit 4dbb198) Co-authored-by: Ayappan Perumal <ayappap2@in.ibm.com>
This was referenced Feb 1, 2024
Merged
serhiy-storchaka
pushed a commit
that referenced
this issue
Feb 1, 2024
serhiy-storchaka
pushed a commit
that referenced
this issue
Feb 1, 2024
aisk
pushed a commit
to aisk/cpython
that referenced
this issue
Feb 11, 2024
Closing because the PRs have been merged and backported. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test_create_directory_with_write in test_zipfile fails in AIX with the below message
======================================================================
FAIL: test_create_directory_with_write (test.test_zipfile.test_core.TestWithDirectory.test_create_directory_with_write)
Traceback (most recent call last):
File "/cpython/Lib/test/test_zipfile/test_core.py", line 2879, in test_create_directory_with_write
self.assertEqual(zinfo.external_attr, (mode << 16) | 0x10)
AssertionError: 1106051088 != 5401018384
The reason being AIX stat call st_mode returns 240700 (in octal) for a directory with 700 mode. In linux, it returns 40700. So there is extra “2” which seems to be related to journaled filesystem. So the logic requires that the mode should go a bitwise AND operation with 0xFFFF , like how it is done in test_write_dir in test_core.py to be in sync with zinfo.external_attr
Linked PRs
The text was updated successfully, but these errors were encountered: