Andrei Kulakov <andrei....@gmail.com> added the comment:

Karthikeyan: I was looking into them yesterday, and:

 - distutils ones can probably be left as is because distutils are set for 
removal in 3.12

 - test_constructor should be fixed, I can do that today.

 - test_null_strings in test_capi I'm not sure, I think it can also be fixed 
here:
https://github.com/python/cpython/blob/main/Modules/_testcapimodule.c#L2388

   .. by replacing return line with     Py_RETURN_NONE;

  but I haven't worked with C tests before and it looks like some other C api 
tests also return non-null and not None values, but they didn't trigger the 
deprecation when running a test PR I made yesterday here:

https://github.com/python/cpython/pull/27869/checks?check_run_id=3387700689

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41322>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to