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