]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-139276: Remove generator type check in _testcapimodule.c:raise_SIGINT_then_send_No...
authorJacob Bower <1978924+jbower-fb@users.noreply.github.com>
Fri, 26 Sep 2025 18:52:10 +0000 (11:52 -0700)
committerGitHub <noreply@github.com>
Fri, 26 Sep 2025 18:52:10 +0000 (11:52 -0700)
commit93ac3525b92f5f8918211a241c01324dfa8b1e5e
tree2888a29de5862a1f9a489258369ea0530e3273bb
parent68a1778b7721f3fb853cd3aa674f7039c2a4df36
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
Modules/_testcapimodule.c