Allow test_pathlib to pass on systems where fakeuser exists. (GH-30244)
https://github.com/python/cpython/commit/d8880677a79ba4e70bbe7583eecf573bfce... commit: d8880677a79ba4e70bbe7583eecf573bfceb7e98 branch: main author: Gregory P. Smith <greg@krypto.org> committer: gpshead <greg@krypto.org> date: 2021-12-23T19:17:40-08:00 summary: Allow test_pathlib to pass on systems where fakeuser exists. (GH-30244) files: M Lib/test/test_pathlib.py diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index 5f6d9f47d13d7..2268d36b0639f 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py @@ -2564,7 +2564,7 @@ def test_expanduser(self): 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)
participants (1)
-
gpshead