Вопрос

In core CPython's source tree (http://hg.python.org/cpython/file/), I cannot find the tests for the core C extension modules.

For example, where is the corresponding test file for /Modules/_heapqmodule.c?

(Note: I do see that there are tests at /Lib/test/, but those appear to be just for the Python stdlib modules that are written in Python.)

Это было полезно?

Решение

They are in the /Lib/test directory (same for extension modules)

For example, test for heapq module is in http://hg.python.org/cpython/file/tip/Lib/test/test_heapq.py

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top