()
| 305 | |
| 306 | @contextmanager |
| 307 | def _unreadable_file() -> Generator[Path]: |
| 308 | with tempfile.TemporaryDirectory() as directory: |
| 309 | probe: Final[Path] = Path(directory, "probe") |
| 310 | probe.touch() |
| 311 | probe.chmod(0) |
| 312 | try: |
| 313 | yield probe |
| 314 | finally: |
| 315 | probe.chmod(0o600) |
| 316 | |
| 317 | |
| 318 | def _has_a_sticky_tmp_of_another_user() -> bool: |
no outgoing calls
no test coverage detected