SIGN IN SIGN UP

gh-139276: Remove generator type check in _testcapimodule.c:raise_SIGINT_then_send_None (#139252)

* Remove generator type check in raise_SIGINT_then_send_None

In the Cinder JIT we use a different type for generators, which breaks
the test which uses this function.

In general I believe the intent with generators is they have the right
structure rather than type, so a failure to find the 'send()' method is arguably
more correct if the wrong object is used.

* Also stop using PyGenObject type
J
Jacob Bower committed
93ac3525b92f5f8918211a241c01324dfa8b1e5e
Parent: 68a1778
Committed by GitHub <noreply@github.com> on 9/26/2025, 6:52:10 PM