| 368 | @NEEDS_CLASS_COLLECTION |
| 369 | def 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")) |
no outgoing calls