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

Method test_home

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

Source from the content-addressed store, hash-verified

1263 pwd is None, reason="Test requires pwd module to get homedir."
1264 )
1265 def test_home(self):
1266 with os_helper.EnvironmentVarGuard() as env:
1267 self._test_home(self.cls.home())
1268
1269 env.clear()
1270 env['USERPROFILE'] = os.path.join(self.base, 'userprofile')
1271 self._test_home(self.cls.home())
1272
1273 # bpo-38883: ignore `HOME` when set on windows
1274 env['HOME'] = os.path.join(self.base, 'home')
1275 self._test_home(self.cls.home())
1276
1277 @unittest.skipIf(is_wasi, "WASI has no user accounts.")
1278 def test_expanduser_common(self):

Callers

nothing calls this directly

Calls 4

_test_homeMethod · 0.95
homeMethod · 0.80
clearMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected