Allow test_pathlib to pass on systems where fakeuser exists. (GH-30244)

(cherry picked from commit d8880677a7)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
This commit is contained in:
Miss Islington (bot) 2021-12-24 00:07:41 -08:00 committed by GitHub
parent 5c4d11fe75
commit 97a015b7b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2449,7 +2449,7 @@ def test_expanduser(self):
p4 = P('../~' + username + '/Documents')
p5 = P('/~' + username + '/Documents')
p6 = P('')
p7 = P('~fakeuser/Documents')
p7 = P('~fake800813user/Documents')
with support.EnvironmentVarGuard() as env:
env.pop('HOME', None)