[Python-checkins] Allow test_pathlib to pass on systems where fakeuser exists. (GH-30244)

miss-islington webhook-mailer at python.org
Fri Dec 24 03:07:45 EST 2021


https://github.com/python/cpython/commit/97a015b7b0e8b7ac8775ba5e33a9359a149253bc
commit: 97a015b7b0e8b7ac8775ba5e33a9359a149253bc
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-12-24T00:07:41-08:00
summary:

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

(cherry picked from commit d8880677a79ba4e70bbe7583eecf573bfceb7e98)

Co-authored-by: Gregory P. Smith <greg at krypto.org>

files:
M Lib/test/test_pathlib.py

diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
index 183c157afdcd0..548951a67a6f2 100644
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -2449,7 +2449,7 @@ def test_expanduser(self):
         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)



More information about the Python-checkins mailing list