(fd: int)
| 175 | real_fstat = os.fstat |
| 176 | |
| 177 | def delayed_fstat(fd: int) -> os.stat_result: |
| 178 | if threading.current_thread() is worker and not entered.is_set(): |
| 179 | descriptors.append(fd) |
| 180 | entered.set() |
| 181 | proceed.wait() |
| 182 | return real_fstat(fd) |
| 183 | |
| 184 | mocker.patch("os.fstat", side_effect=delayed_fstat) |
| 185 |
nothing calls this directly
no outgoing calls
no test coverage detected