MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_owner

Method test_owner

Lib/test/test_pathlib/test_pathlib.py:2028–2033  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2026
2027 @unittest.skipUnless(pwd, "the pwd module is needed for this test")
2028 def test_owner(self):
2029 p = self.cls(self.base) / 'fileA'
2030 expected_uid = p.stat().st_uid
2031 expected_name = self._get_pw_name_or_skip_test(expected_uid)
2032
2033 self.assertEqual(expected_name, p.owner())
2034
2035 @unittest.skipUnless(pwd, "the pwd module is needed for this test")
2036 @unittest.skipUnless(root_in_posix, "test needs root privilege")

Callers

nothing calls this directly

Calls 5

clsMethod · 0.45
statMethod · 0.45
assertEqualMethod · 0.45
ownerMethod · 0.45

Tested by

no test coverage detected