(self)
| 158 | return open_files |
| 159 | |
| 160 | def matching_platform(self) -> bool: |
| 161 | try: |
| 162 | subprocess.run(("lsof", "-v"), check=True) |
| 163 | except (OSError, subprocess.CalledProcessError): |
| 164 | return False |
| 165 | else: |
| 166 | return True |
| 167 | |
| 168 | @hookimpl(wrapper=True, tryfirst=True) |
| 169 | def pytest_runtest_protocol(self, item: Item) -> Generator[None, object, object]: |