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

Class DynamicFileLock

tests/core/test_subclass_options.py:370–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368@NEEDS_CLASS_COLLECTION
369def test_constructor_model_does_not_retain_dynamic_subclass(tmp_path: Path) -> None:
370 class DynamicFileLock(BaseFileLock):
371 def _acquire(self) -> None:
372 raise NotImplementedError
373
374 def _release(self) -> None:
375 raise NotImplementedError
376
377 class_ref = ref(DynamicFileLock)
378 DynamicFileLock(str(tmp_path / "lock"))

Calls

no outgoing calls