]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Allow test_pathlib to pass on systems where fakeuser exists. (GH-30244)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 Dec 2021 08:07:41 +0000 (00:07 -0800)
committerGitHub <noreply@github.com>
Fri, 24 Dec 2021 08:07:41 +0000 (00:07 -0800)
(cherry picked from commit d8880677a79ba4e70bbe7583eecf573bfceb7e98)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/test/test_pathlib.py

index 183c157afdcd038f1fce679a8ea12980be320a6a..548951a67a6f23c83f4b1cae297083e4a0beb868 100644 (file)
@@ -2449,7 +2449,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 support.EnvironmentVarGuard() as env:
             env.pop('HOME', None)