Update test_archive.py expected file hashes when running on Python 3.9 or newer
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox-esr91 fixed, firefox95 fixed)
People
(Reporter: masterwayz, Assigned: masterwayz)
References
Details
Attachments
(1 file)
Python 3.9 has changes in its tar library that we use for this test that changes the file hash we expect.
Assignee | ||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
this is a result of:
https://github.com/python/cpython/pull/18080
specifically in py 3.9, we have this code:
has_device_fields = info.get("type") in (CHRTYPE, BLKTYPE)
if has_device_fields:
devmajor = itn(info.get("devmajor", 0), 8, format)
devminor = itn(info.get("devminor", 0), 8, format)
else:
devmajor = stn("", 8, encoding, errors)
devminor = stn("", 8, encoding, errors)
and prior to this we just had:
devmajor = itn(info.get("devmajor", 0), 8, format)
devminor = itn(info.get("devminor", 0), 8, format)
in our test, we set:
tarinfo.type = REGTYPE
so now we are changing these fields in the header and this is causing our tarfile tobe different.
Assignee | ||
Comment 2•3 years ago
|
||
Pushed by michelle@masterwayz.nl: https://hg.mozilla.org/integration/autoland/rev/d644badc7844 Update test_archive.py expected file hashes when running on Python 3.9 or newer r=jmaher
Comment 4•3 years ago
|
||
bugherder |
Comment 5•3 years ago
|
||
bugherder uplift |
Description
•