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.

classification
Title: PosixPathTest.test_expanduser fails in NixOS build sandbox
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.8, Python 3.7, Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: andersk, miss-islington, pitrou, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2018-01-19 19:31 by andersk, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 5246 merged andersk, 2018-01-19 19:31
PR 6792 merged miss-islington, 2018-05-14 14:00
PR 6793 merged miss-islington, 2018-05-14 14:01
Messages (4)
msg310282 - (view) Author: Anders Kaseorg (andersk) * Date: 2018-01-19 19:31
PosixPathTest.test_expanduser fails in the NixOS build sandbox, where every user has home directory /, so it falls off the end of the for pwdent in pwd.getpwall() loop.

nixbld:x:30001:30000:Nix build user:/:/noshell
nobody:x:65534:65534:Nobody:/:/noshell

======================================================================
FAIL: test_expanduser (__main__.PosixPathTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/mdak9gcy16dc536ws08rshyakd1l7srj-test_pathlib.py", line 2162, in test_expanduser
    self.assertEqual(p3.expanduser(), P(otherhome) / 'Documents')
AssertionError: PosixPath('/Documents') != PosixPath('Documents')
msg316504 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-05-14 14:00
New changeset 5c0d462689e1a69537eaeba6ab94e3ff3524fc31 by Serhiy Storchaka (Anders Kaseorg) in branch 'master':
bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)
https://github.com/python/cpython/commit/5c0d462689e1a69537eaeba6ab94e3ff3524fc31
msg316507 - (view) Author: miss-islington (miss-islington) Date: 2018-05-14 14:22
New changeset 2e01f7d5fe51b492e39d97bf0da2a83f2efb977d by Miss Islington (bot) in branch '3.7':
bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)
https://github.com/python/cpython/commit/2e01f7d5fe51b492e39d97bf0da2a83f2efb977d
msg316512 - (view) Author: miss-islington (miss-islington) Date: 2018-05-14 14:45
New changeset 48fdbbf6bb0cd0ea9d284ba650a80bffa6310c6b by Miss Islington (bot) in branch '3.6':
bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)
https://github.com/python/cpython/commit/48fdbbf6bb0cd0ea9d284ba650a80bffa6310c6b
History
Date User Action Args
2022-04-11 14:58:56adminsetgithub: 76782
2018-05-14 14:48:18serhiy.storchakasetstatus: open -> closed
stage: patch review -> resolved
resolution: fixed
versions: + Python 3.6, Python 3.8
2018-05-14 14:45:37miss-islingtonsetmessages: + msg316512
2018-05-14 14:22:07miss-islingtonsetnosy: + miss-islington
messages: + msg316507
2018-05-14 14:01:51miss-islingtonsetpull_requests: + pull_request6478
2018-05-14 14:00:59miss-islingtonsetkeywords: + patch
stage: patch review
pull_requests: + pull_request6477
2018-05-14 14:00:40serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg316504
2018-01-19 19:36:45r.david.murraysetnosy: + pitrou
2018-01-19 19:31:36anderskcreate