New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

test_null_strings in Modules/_testcapimodule.c was initially added in 
7580146b5c7025976f0907a9893e01dc3d3d3457 for testing PyObject_Str(NULL) and 
PyObject_Unicode(NULL). PyObject_Unicode() was removed in 3.0, so now the test 
calls PyObject_Str(NULL) twice that does not make sense. On other hand, 
PyObject_Bytes(NULL) and PyObject_Repr(NULL) are not tested. Additionally, 
there are now problems with unittest tests returning non-None.

So this test should be completely rewritten.

----------
components: Tests
messages: 400139
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: Rewrite test_null_strings in _testcapi
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.9

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

Reply via email to