(self)
| 2274 | self.assertNotIn("HAVE_PTSNAME_R", posix._have_functions) |
| 2275 | |
| 2276 | def test_access(self): |
| 2277 | self._verify_available("HAVE_FACCESSAT") |
| 2278 | if self.mac_ver >= (10, 10): |
| 2279 | self.assertIn("HAVE_FACCESSAT", posix._have_functions) |
| 2280 | |
| 2281 | else: |
| 2282 | self.assertNotIn("HAVE_FACCESSAT", posix._have_functions) |
| 2283 | |
| 2284 | with self.assertRaisesRegex(NotImplementedError, "dir_fd unavailable"): |
| 2285 | os.access("file", os.R_OK, dir_fd=0) |
| 2286 | |
| 2287 | with self.assertRaisesRegex(NotImplementedError, "follow_symlinks unavailable"): |
| 2288 | os.access("file", os.R_OK, follow_symlinks=False) |
| 2289 | |
| 2290 | with self.assertRaisesRegex(NotImplementedError, "effective_ids unavailable"): |
| 2291 | os.access("file", os.R_OK, effective_ids=True) |
| 2292 | |
| 2293 | def test_chmod(self): |
| 2294 | self._verify_available("HAVE_FCHMODAT") |
nothing calls this directly
no test coverage detected