]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Allow test_pathlib to pass on systems where fakeuser exists. (GH-30244)
authorGregory P. Smith <greg@krypto.org>
Fri, 24 Dec 2021 03:17:40 +0000 (19:17 -0800)
committerGitHub <noreply@github.com>
Fri, 24 Dec 2021 03:17:40 +0000 (19:17 -0800)
Lib/test/test_pathlib.py

index 5f6d9f47d13d7545d265d9a68424265e760a3470..2268d36b0639fdaa4aff3e0ea5bcfc913d32b3bb 100644 (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)