(self)
| 86 | self._context.lock_file_fd = fd |
| 87 | |
| 88 | def _release(self) -> None: |
| 89 | fd = cast("int", self._context.lock_file_fd) |
| 90 | self._context.lock_file_fd = None |
| 91 | msvcrt.locking(fd, msvcrt.LK_UNLCK, 1) |
| 92 | os.close(fd) |
| 93 | |
| 94 | with suppress(OSError): |
| 95 | Path(self.lock_file).unlink() |
| 96 | |
| 97 | else: # pragma: win32 no cover |
| 98 |