From: Gregory P. Smith Date: Fri, 24 Dec 2021 03:17:40 +0000 (-0800) Subject: Allow test_pathlib to pass on systems where fakeuser exists. (GH-30244) X-Git-Tag: v3.11.0a4~146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8880677a79ba4e70bbe7583eecf573bfceb7e98;p=thirdparty%2FPython%2Fcpython.git Allow test_pathlib to pass on systems where fakeuser exists. (GH-30244) --- diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index 5f6d9f47d13d..2268d36b0639 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py @@ -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)