Visitar URL original
move root checks to test.support by kulikjak · Pull Request #146195 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unrelated changes
  • Loading branch information
kulikjak committed Mar 20, 2026
commit 2d6b2d590feedbaac2c1fa39f3d0be50ef9a6758
3 changes: 2 additions & 1 deletion Lib/test/test_pathlib/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -3212,14 +3212,15 @@ def test_touch_mode(self):
st = os.stat(self.parser.join(self.base, 'masked_new_file'))
self.assertEqual(stat.S_IMODE(st.st_mode), 0o750)

@unittest.skipUnless(pwd, "the pwd module is needed for this test")
@unittest.skipUnless(hasattr(pwd, 'getpwall'),
'pwd module does not expose getpwall()')
@unittest.skipIf(sys.platform == "vxworks",
"no home directory on VxWorks")
@needs_posix
def test_expanduser_posix(self):
P = self.cls
import_helper.import_module('pwd')
import pwd
pwdent = pwd.getpwuid(os.getuid())
username = pwdent.pw_name
userhome = pwdent.pw_dir.rstrip('/') or '/'
Expand Down
Loading