MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / _StopTest

Class _StopTest

tests/lib/environments/test_poller_method.py:93–99  ·  view source on GitHub ↗

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).

Source from the content-addressed store, hash-verified

91
92
93class _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
102def _sync_noop(_seconds: float) -> None:

Callers 2

pollMethod · 0.85
pollMethod · 0.85

Calls

no outgoing calls

Tested by 2

pollMethod · 0.68
pollMethod · 0.68