Question

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.)

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top