]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Refactor helpers for compiling the xx module in distutils tests.
authorÉric Araujo <merwok@netwok.org>
Thu, 25 Aug 2011 23:56:15 +0000 (01:56 +0200)
committerÉric Araujo <merwok@netwok.org>
Thu, 25 Aug 2011 23:56:15 +0000 (01:56 +0200)
commit04612d60929d5cda8d4cd215dfa2fc050d20b530
tree808256f32d6ed2c21322ce403d33b20895cb00b6
parent04295009b8d7be75d5e361d8f332b12a6418799a
Refactor helpers for compiling the xx module in distutils tests.

I need to copy the xxmodule.c file in other tests, so I moved the
support code to distutils.tests.support and improved it:
- don’t skip when run from the Lib/distutils/tests directory
- use proper skip machinery instead of custom print/return/test suite
  fiddling.

I also took out the fixup_build_ext function, which is needed for tests
to pass on Unix shared builds and Windows debug builds.

Finally, I cleaned up a few things:
- don’t remove directories in tearDown when the parent class’ tearDown
  has already registered the directories for removal
- simplify restoration of sys.path
- remove a few unused names found by pyflakes.
Lib/distutils/tests/support.py
Lib/distutils/tests/test_build_ext.py