[New-bugs-announce] [issue44984] Rewrite test_null_strings in _testcapi
Serhiy Storchaka
report at bugs.python.org
Mon Aug 23 10:46:11 EDT 2021
New submission from Serhiy Storchaka <storchaka+cpython at 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 <report at bugs.python.org>
<https://bugs.python.org/issue44984>
_______________________________________
More information about the New-bugs-announce
mailing list