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

This commit is contained in:
Gregory P. Smith 2021-12-23 19:17:40 -08:00 committed by GitHub
parent cf15419a99
commit d8880677a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2564,7 +2564,7 @@ class PosixPathTest(_BasePathTest, unittest.TestCase):
p4 = P('../~' + username + '/Documents')
p5 = P('/~' + username + '/Documents')
p6 = P('')
p7 = P('~fakeuser/Documents')
p7 = P('~fake800813user/Documents')
with os_helper.EnvironmentVarGuard() as env:
env.pop('HOME', None)