(self)
| 2393 | os.chmod("file", 0o644, dir_fd=0) |
| 2394 | |
| 2395 | def test_chown(self): |
| 2396 | self._verify_available("HAVE_FCHOWNAT") |
| 2397 | if self.mac_ver >= (10, 10): |
| 2398 | self.assertIn("HAVE_FCHOWNAT", posix._have_functions) |
| 2399 | |
| 2400 | else: |
| 2401 | self.assertNotIn("HAVE_FCHOWNAT", posix._have_functions) |
| 2402 | self.assertIn("HAVE_LCHOWN", posix._have_functions) |
| 2403 | |
| 2404 | with self.assertRaisesRegex(NotImplementedError, "dir_fd unavailable"): |
| 2405 | os.chown("file", 0, 0, dir_fd=0) |
| 2406 | |
| 2407 | def test_link(self): |
| 2408 | self._verify_available("HAVE_LINKAT") |
nothing calls this directly
no test coverage detected