[New-bugs-announce] [issue32601] PosixPathTest.test_expanduser fails in NixOS build sandbox

Anders Kaseorg report at bugs.python.org
Fri Jan 19 14:31:36 EST 2018


New submission from Anders Kaseorg <andersk at mit.edu>:

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

----------
components: Tests
messages: 310282
nosy: andersk
priority: normal
pull_requests: 5091
severity: normal
status: open
title: PosixPathTest.test_expanduser fails in NixOS build sandbox
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32601>
_______________________________________


More information about the New-bugs-announce mailing list