• Éric Araujo's avatar
    Refactor helpers for compiling the xx module in distutils tests. · 04612d60
    Éric Araujo authored
    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.
    04612d60
support.py 6.26 KB