Внутри CPython есть два способа запускать тесты: прямой через
Задача – починить первый способ.
https://github.com/python/cpython/issues/131290
#cpython #tests
./python.exe test_name.py
и regrtest
. Обычно все используют второй, но первый тоже полезен.Задача – починить первый способ.
https://github.com/python/cpython/issues/131290
#cpython #tests
GitHub
Multiple tests failing when invoked directly via `./python Lib/test/...` · Issue #131290 · python/cpython
Besides test_pickle reported in #131031, there are a few more (test_regrtest, test_metaclass and test_pyclbr): ~ ./python Lib/test/test_regrtest.py ... Ran 115 tests in 35.727s FAILED (failures=1, ...
Добавить тестирование пустых байтов
https://github.com/python/cpython/issues/131357
#cpython #tests
b""
в разные C-API тесты в нашем наборе тестов.https://github.com/python/cpython/issues/131357
#cpython #tests
GitHub
Add more tests for zero-sized bytes objects in `capi` tests · Issue #131357 · python/cpython
Bug report Quoting @picnixz: #131343 (comment) We could add more 0-size bytes tests in other functions as well I think. For instance PyBytes_FromObject(b'') is not tested. PRs are welcome!