]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-26067: Do not fail test_shutil / chown when gid/uid cannot be resolved (#19032)
authorMatthias Braun <matze@braunis.de>
Tue, 17 Mar 2020 16:51:44 +0000 (09:51 -0700)
committerGitHub <noreply@github.com>
Tue, 17 Mar 2020 16:51:44 +0000 (09:51 -0700)
commit52268941f37e3e27bd01792b081877ec3bc9ce12
treeb690475b9a1443d3a33ad551ef6851ba60346fd8
parent982307b9cceef36e30ac43b13032d68c3b921adc
bpo-26067: Do not fail test_shutil / chown when gid/uid cannot be resolved (#19032)

* bpo-26067: Do not fail test_shutil.chown when gid/uid cannot be resolved

There is no guarantee that the users primary uid or gid can be resolved
in the unix group/account databases. Skip the last part of the chown
test if we cannot resolve the gid or uid to a name.

* ðŸ“œðŸ¤– Added by blurb_it.

* Address review feedback

* address review feedback correctly

* fix typo

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Lib/test/test_shutil.py
Misc/NEWS.d/next/Tests/2020-03-16-20-54-55.bpo-26067.m18_VV.rst [new file with mode: 0644]