(self)
| 2424 | |
| 2425 | @os_helper.skip_if_dac_override |
| 2426 | def test_non_matching_mode(self): |
| 2427 | # Set the file read-only and ask for writeable files. |
| 2428 | os.chmod(self.filepath, stat.S_IREAD) |
| 2429 | if os.access(self.filepath, os.W_OK): |
| 2430 | self.skipTest("can't set the file read-only") |
| 2431 | rv = shutil.which(self.file, path=self.dir, mode=os.W_OK) |
| 2432 | self.assertIsNone(rv) |
| 2433 | |
| 2434 | def test_relative_path(self): |
| 2435 | base_dir, tail_dir = os.path.split(self.dir) |
nothing calls this directly
no test coverage detected