Sentinel used to break a poller out of its infinite loop in tests. Inherits from BaseException so it bypasses the generator's ``except Exception`` arms (which would otherwise treat the empty-script error as a transient poll failure and retry forever).
| 91 | |
| 92 | |
| 93 | class _StopTest(BaseException): |
| 94 | """Sentinel used to break a poller out of its infinite loop in tests. |
| 95 | |
| 96 | Inherits from BaseException so it bypasses the generator's |
| 97 | ``except Exception`` arms (which would otherwise treat the empty-script |
| 98 | error as a transient poll failure and retry forever). |
| 99 | """ |
| 100 | |
| 101 | |
| 102 | def _sync_noop(_seconds: float) -> None: |