Branch/cpyext pylong assize t fix exc type

Closed Simon Cross requested to merge branch/cpyext-pylong-assize-t-fix-exc-type into branch/default

I discovered via the HPy tests that the behaviour of PyLong_AsSsize_t in cpyext raises ValueError instead of Overflow error in the case of overflows.

This branch adds a test and a fix for this case.

It also adds a test for the case where an object that is not a PyLong is passed.

Merge request reports