()
| 203 | |
| 204 | |
| 205 | def _open_descriptors() -> int: |
| 206 | for directory in ("/proc/self/fd", "/dev/fd"): |
| 207 | with suppress(OSError): |
| 208 | return sum(1 for _ in Path(directory).iterdir()) |
| 209 | return 0 # pragma: no cover # neither procfs nor /dev/fd exists on this platform |
| 210 | |
| 211 | |
| 212 | def _report(samples: list[Sample]) -> None: |
no outgoing calls
no test coverage detected