Issue 32601: PosixPathTest.test_expanduser fails in NixOS build sandbox (original) (raw)
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')