MCPcopy Create free account
hub / github.com/tox-dev/filelock / _release

Method _release

tests/test_fork_registries.py:26–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24 self._context.lock_file_fd = os.open(self.lock_file, os.O_CREAT | os.O_RDWR, 0o600)
25
26 def _release(self) -> None: # pragma: win32 no cover
27 os.close(self._context.lock_file_fd if self._context.lock_file_fd is not None else -1)
28 self._context.lock_file_fd = None
29
30 first = EqualLock(str(tmp_path / "first.lock"), is_singleton=False)
31 second = EqualLock(str(tmp_path / "second.lock"), is_singleton=False)

Callers 1

test_wrong_platformFunction · 0.45

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected