]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Refactor the copying of xxmodule.c in packaging tests (#12141).
authorÉric Araujo <merwok@netwok.org>
Sat, 20 Aug 2011 05:27:47 +0000 (07:27 +0200)
committerÉric Araujo <merwok@netwok.org>
Sat, 20 Aug 2011 05:27:47 +0000 (07:27 +0200)
commit60b0d31e35238275ef9f72ca1be71e4efae88fc2
tree4357a67281363b37145b429cbf9bc136c4e3170f
parentc9322aabaa32df09af0bfcd317d1a860fb47a675
Refactor the copying of xxmodule.c in packaging tests (#12141).

I need to copy this file in another test too, so I moved the support
code to distutils.tests.support and improved it to use proper skip
machinery instead of custom print/return/test suite fiddling.

Contrary to my similar change in distutils tests, I did not add support
for finding xxmodule.c when running a test from the tests directory,
because in that case my compiler didn’t find Python.h, so I figured it’s
better to skip than to fail.
Lib/packaging/tests/support.py
Lib/packaging/tests/test_command_build_ext.py