Created attachment 1561640 [details] Full log from Copr python-libarchive-c 2.8-5.fc31 fails %check on Python 3.8: =================================== FAILURES =================================== ___________________ test_check_ArchiveEntry_against_TarInfo ____________________ def test_check_ArchiveEntry_against_TarInfo(): for name in ('special.tar', 'tar_relative.tar'): path = join(data_dir, name) > tarinfos = list(get_tarinfos(path)) tests/test_entry.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ location = '/builddir/build/BUILD/python-libarchive-c-2.8/tests/data/special.tar' def get_tarinfos(location): """ Using the tar archive file at `location`, return an iterable of name->value mappings for each tarfile.TarInfo objects essential attributes. Paths are base64-encoded because JSON is UTF-8 and cannot handle arbitrary binary pathdata. """ with closing(tarfile.open(location)) as tar: for entry in tar: path = surrogate_decode(entry.path or '') if entry.isdir() and not path.endswith('/'): path += '/' # libarchive introduces prefixes such as h prefix for # hardlinks: tarfile does not, so we ignore the first char > mode = tarfile.filemode(entry.mode)[1:] E AttributeError: module 'tarfile' has no attribute 'filemode' tests/__init__.py:86: AttributeError ===================== 1 failed, 28 passed in 0.47 seconds ====================== (Full log attached.) This has really changed: $ python3.7 -c 'import tarfile; tarfile.filemode' $ python3.8 -c 'import tarfile; tarfile.filemode' Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: module 'tarfile' has no attribute 'filemode' $ python3.7 -c 'import tarfile; help(tarfile.filemode)' Help on function filemode in module tarfile: filemode(mode) Deprecated in this location; use stat.filemode.
(I'm drafting an upstream fix.)
https://github.com/Changaco/python-libarchive-c/pull/88
Built in rawhide