(self)
| 2381 | os.access("file", os.R_OK, effective_ids=True) |
| 2382 | |
| 2383 | def test_chmod(self): |
| 2384 | self._verify_available("HAVE_FCHMODAT") |
| 2385 | if self.mac_ver >= (10, 10): |
| 2386 | self.assertIn("HAVE_FCHMODAT", posix._have_functions) |
| 2387 | |
| 2388 | else: |
| 2389 | self.assertNotIn("HAVE_FCHMODAT", posix._have_functions) |
| 2390 | self.assertIn("HAVE_LCHMOD", posix._have_functions) |
| 2391 | |
| 2392 | with self.assertRaisesRegex(NotImplementedError, "dir_fd unavailable"): |
| 2393 | os.chmod("file", 0o644, dir_fd=0) |
| 2394 | |
| 2395 | def test_chown(self): |
| 2396 | self._verify_available("HAVE_FCHOWNAT") |
nothing calls this directly
no test coverage detected