[issue12420] distutils tests fail if PATH is not defined

Éric Araujo report at bugs.python.org
Mon Jul 11 17:34:34 CEST 2011


Éric Araujo <merwok at netwok.org> added the comment:

Sorry, I don’t want to monkey-patch find_executable during tests.  We want the tests to work with the real code, with the same behavior and errors as real setup.py calls.  If a test does not work with python -E, then it should be skipped.

(Implementation idea:
  skip_if_empty_env = unittest.skipUnless(
      os.environ, 'test cannot run with an empty environment')
using sys.flags is not possible due to backward compatibility policy)

----------

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


More information about the Python-bugs-list mailing list