[issue11910] test_heapq C tests are not skipped when _heapq is missing

Ezio Melotti report at bugs.python.org
Sun May 8 20:36:47 CEST 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

Attached a patch that fixes import_fresh_module to return None when _heapq is missing and skips the C test when _heapq is missing.

I also added an additional test to verify that the functions in c_heapq are really C functions and the ones in py_heapq are really Python functions.

----------
Added file: http://bugs.python.org/file21936/issue11910.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11910>
_______________________________________


More information about the Python-bugs-list mailing list