Fix unittest method usage that was long deprecated and removed in Py3.11.
Fix unittest method usage that was long deprecated and removed in Py3.11.

cython/cython,cython/cython,da-woods/cython,cython/cython,da-woods/cython,da-woods/cython,scoder/cython,da-woods/cython,scoder/cython,cython/cython,scoder/cython,scoder/cython