문제

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