()
| 193 | |
| 194 | |
| 195 | def _open_descriptors() -> int: |
| 196 | for directory in ("/proc/self/fd", "/dev/fd"): |
| 197 | with suppress(OSError): |
| 198 | return sum(1 for _ in Path(directory).iterdir()) |
| 199 | return 0 # pragma: no cover # neither procfs nor /dev/fd exists on this platform |
| 200 | |
| 201 | |
| 202 | def _report(samples: list[Sample]) -> None: |
no outgoing calls
no test coverage detected