Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PosixPathTest.test_expanduser fails in NixOS build sandbox #76782

Closed
andersk mannequin opened this issue Jan 19, 2018 · 4 comments
Closed

PosixPathTest.test_expanduser fails in NixOS build sandbox #76782

andersk mannequin opened this issue Jan 19, 2018 · 4 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@andersk
Copy link
Mannequin

andersk mannequin commented Jan 19, 2018

BPO 32601
Nosy @pitrou, @andersk, @serhiy-storchaka, @miss-islington
PRs
  • bpo-32601: Skip PosixPathTest.test_expanduser if no other user is found #5246
  • [3.7] bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246) #6792
  • [3.6] bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246) #6793
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2018-05-14.14:48:18.486>
    created_at = <Date 2018-01-19.19:31:36.735>
    labels = ['3.7', '3.8', 'type-bug', 'tests']
    title = 'PosixPathTest.test_expanduser fails in NixOS build sandbox'
    updated_at = <Date 2018-05-14.14:48:18.485>
    user = 'https://github.com/andersk'

    bugs.python.org fields:

    activity = <Date 2018-05-14.14:48:18.485>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-05-14.14:48:18.486>
    closer = 'serhiy.storchaka'
    components = ['Tests']
    creation = <Date 2018-01-19.19:31:36.735>
    creator = 'andersk'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32601
    keywords = ['patch']
    message_count = 4.0
    messages = ['310282', '316504', '316507', '316512']
    nosy_count = 4.0
    nosy_names = ['pitrou', 'andersk', 'serhiy.storchaka', 'miss-islington']
    pr_nums = ['5246', '6792', '6793']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue32601'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    @andersk
    Copy link
    Mannequin Author

    andersk mannequin commented Jan 19, 2018

    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')

    @andersk andersk mannequin added 3.7 (EOL) end of life tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Jan 19, 2018
    @serhiy-storchaka
    Copy link
    Member

    New changeset 5c0d462 by Serhiy Storchaka (Anders Kaseorg) in branch 'master':
    bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)
    5c0d462

    @miss-islington
    Copy link
    Contributor

    New changeset 2e01f7d by Miss Islington (bot) in branch '3.7':
    bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)
    2e01f7d

    @miss-islington
    Copy link
    Contributor

    New changeset 48fdbbf by Miss Islington (bot) in branch '3.6':
    bpo-32601: Let test_expanduser use the same user if no others found. (GH-5246)
    48fdbbf

    @serhiy-storchaka serhiy-storchaka added the 3.8 only security fixes label May 14, 2018
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life 3.8 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants