[issue5167] distutils/test_customize_compiler fails on windows

Hirokazu Yamamoto report at bugs.python.org
Fri Feb 6 13:56:38 CET 2009


New submission from Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp>:

test_customize_compiler fails on windows with following error message.

ERROR: test_customize_compiler
(distutils.tests.test_sysconfig.SysconfigTestCase
)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "e:\python-dev\trunk\lib\distutils\tests\test_sysconfig.py", line
54, in
test_customize_compiler
    sysconfig.customize_compiler(comp)
  File "e:\python-dev\trunk\lib\distutils\sysconfig.py", line 181, in
customize_
compiler
    cpp = cc + " -E"           # not always
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

I hope attached patch will fix this.

----------
components: Distutils, Tests
files: fix_distutils_test.patch
keywords: patch
messages: 81261
nosy: ocean-city, tarek
severity: normal
stage: patch review
status: open
title: distutils/test_customize_compiler fails on windows
versions: Python 2.7
Added file: http://bugs.python.org/file12951/fix_distutils_test.patch

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


More information about the Python-bugs-list mailing list