Closed murphm8 closed 4 years ago
This test failure is because tarfile.DEFAULT_FORMAT
changed from GNU_FORMAT
to PAX_FORMAT
in Python 3.8.
With this change, the header
size (and subsequently offset
) of overlays calculated in bundlefile.py changed from 512 bytes in GNU_FORMAT
to 1536 bytes in PAX_FORMAT
.
For the unit tests to work in both python3.8, we need to account for the extra header size in unit tests.
There were 2 problems why tests were failing and why the header
size was different in different python versions:
tarfile.GNU_FORMAT
in close()
, so all operations performed before (like initialization) had format mismatch.header
and thus offset
sizes.
A while ago I made a fix for a Python3.8 test failure: #86
There still appears to be some sort of problem with bundles build with Python3.8. When I run the bundle extraction tool on it (uses the metadata), I see the following: