(self)
| 2491 | os.mknod("path", dir_fd=0) |
| 2492 | |
| 2493 | def test_rename_replace(self): |
| 2494 | self._verify_available("HAVE_RENAMEAT") |
| 2495 | if self.mac_ver >= (10, 10): |
| 2496 | self.assertIn("HAVE_RENAMEAT", posix._have_functions) |
| 2497 | |
| 2498 | else: |
| 2499 | self.assertNotIn("HAVE_RENAMEAT", posix._have_functions) |
| 2500 | |
| 2501 | with self.assertRaisesRegex(NotImplementedError, "src_dir_fd and dst_dir_fd unavailable"): |
| 2502 | os.rename("a", "b", src_dir_fd=0) |
| 2503 | |
| 2504 | with self.assertRaisesRegex(NotImplementedError, "src_dir_fd and dst_dir_fd unavailable"): |
| 2505 | os.rename("a", "b", dst_dir_fd=0) |
| 2506 | |
| 2507 | with self.assertRaisesRegex(NotImplementedError, "src_dir_fd and dst_dir_fd unavailable"): |
| 2508 | os.replace("a", "b", src_dir_fd=0) |
| 2509 | |
| 2510 | with self.assertRaisesRegex(NotImplementedError, "src_dir_fd and dst_dir_fd unavailable"): |
| 2511 | os.replace("a", "b", dst_dir_fd=0) |
| 2512 | |
| 2513 | def test_unlink_rmdir(self): |
| 2514 | self._verify_available("HAVE_UNLINKAT") |
nothing calls this directly
no test coverage detected