Xavier de Gaye added the comment: The chown() method of the tarfile.TarFile class does not attempt to do a chown when pwd is None, even when numeric_owner is True, and although an attempt is made to fall back to tarinfo.gid when getgrnam() fails, or to tarinfo.uid when getgrnam() fails, nothing is done if only one of the grp or pwd modules fails on import.
This new patch is similar to the previous one and is more explicit. ---------- assignee: -> xdegaye components: -Cross-Build stage: -> patch review title: android: test_tarfile fails -> the chown() method of the tarfile.TarFile class fails on Android versions: +Python 3.7 Added file: http://bugs.python.org/file45282/pwd_grp_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26937> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com