(self)
| 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): |
nothing calls this directly
no test coverage detected