[Python-Dev] Testsuite dependency on _testcapi (original) (raw)

Victor Stinner victor.stinner at gmail.com
Fri Mar 9 23:56:51 CET 2012


On 09/03/2012 20:44, Thomas Wouters wrote:

(...) it would be nice to still run the tests that can be run without testcapi. Any objections to fixing the tests to use test.support.importmodule() for testcapi and a 'needstestcapi' skipping decorator?

test.support.import_module() looks fine for such issue.

I'm guilty of adding new "from _testcapi import ..." in some tests (test_unicode at least). You add a test.support.import_module() in such test.

Victor



More information about the Python-Dev mailing list