This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: test_pathlib assumes "fakeuser" does not exist as user
Type: Stage: resolved
Components: Tests Versions: Python 3.11, Python 3.10, Python 3.9
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gregory.p.smith Nosy List: gregory.p.smith, miss-islington, sobolevn, twouters
Priority: normal Keywords: patch

Created on 2021-12-22 12:58 by twouters, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 30240 merged sobolevn, 2021-12-23 10:43
PR 30244 merged gregory.p.smith, 2021-12-24 07:46
PR 30248 merged miss-islington, 2021-12-24 08:07
PR 30249 merged miss-islington, 2021-12-24 08:08
PR 30249 merged miss-islington, 2021-12-24 08:08
PR 30249 merged miss-islington, 2021-12-24 08:08
Messages (4)
msg409030 - (view) Author: Thomas Wouters (twouters) * (Python committer) Date: 2021-12-22 12:58
test_pathlib contains, in PosixPathTest.test_expanduser, a check that expanduser on a nonexistent user will raise RuntimeError. Leaving aside the question why that's a RuntimeError (which is probably too late to fix anyway), the test performs this check by assuming 'fakeuser' is a nonexistent user. This test will fail when such a user does exist. (The test already uses the pwd module for other reasons, so it certainly could check that first.)
msg409128 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2021-12-24 08:07
New changeset b8de8b7039cee47465b2af9950b0b9ed2d3f2903 by Nikita Sobolev in branch 'main':
bpo-46150: ensure `fakeuser` does not exist in `PosixPathTest.test_expanduser` (GH-30240)
msg409130 - (view) Author: miss-islington (miss-islington) Date: 2021-12-24 08:31
New changeset 8005e22c9c71708ead0e5b16e55e005844c5131f by Miss Islington (bot) in branch '3.10':
bpo-46150: ensure `fakeuser` does not exist in `PosixPathTest.test_expanduser` (GH-30240)
msg409131 - (view) Author: miss-islington (miss-islington) Date: 2021-12-24 08:32
New changeset d718764f389acd1bf4a5a65661bb58862f14fb98 by Miss Islington (bot) in branch '3.9':
bpo-46150: ensure `fakeuser` does not exist in `PosixPathTest.test_expanduser` (GH-30240)
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90308
2021-12-27 18:37:51gregory.p.smithsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-12-24 08:32:30miss-islingtonsetmessages: + msg409131
2021-12-24 08:31:26miss-islingtonsetmessages: + msg409130
2021-12-24 08:08:12miss-islingtonsetpull_requests: + pull_request28470
2021-12-24 08:08:06miss-islingtonsetpull_requests: + pull_request28469
2021-12-24 08:08:02miss-islingtonsetpull_requests: + pull_request28468
2021-12-24 08:07:58miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request28467
2021-12-24 08:07:54gregory.p.smithsetmessages: + msg409128
2021-12-24 07:46:06gregory.p.smithsetpull_requests: + pull_request28466
2021-12-24 07:34:10gregory.p.smithsetassignee: gregory.p.smith

nosy: + gregory.p.smith
2021-12-23 10:43:38sobolevnsetkeywords: + patch
nosy: + sobolevn

pull_requests: + pull_request28462
stage: patch review
2021-12-22 12:58:48twouterscreate