This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients alexis, eric.araujo, henry.precheur, ncoghlan, tarek, terry.reedy
Date 2013-09-01.22:50:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I just ran into this issue (same I believe) running the test suite with installed, versus repository, python on win7, but get a different traceback.

Traceback (most recent call last):
   line 156, in test_optional_extension # or
   line 316, in test_get_outputs  # should raise an error
 ...\lib\unittest\", line 570, in assertRaises
    return context.handle('assertRaises', callableObj, args, kwargs)
 ...\lib\unittest\", line 135, in handle
    callable_obj(*args, **kwargs)
 ...\lib\distutils\command\", line 354, in run
 ...\lib\distutils\command\", line 463, in build_extensions
 ...\lib\distutils\command\", line 518, in build_extension
 ...\lib\distutils\", line 460, in compile
 ...\lib\distutils\", line 371, in initialize
    vc_env = query_vcvarsall(VERSION, plat_spec)
 ...\lib\distutils\", line 287, in query_vcvarsall
    raise ValueError(str(list(result.keys())))
ValueError: ['path']

I agree with  Éric that the test should be skipped if it cannot go on.
        self.assertRaises((UnknownFileError, CompileError),
                  # should raise an error
try:...except ValueError: <skip> would fix this issue on Windows. So would skipping if sys.platform == 'win32' and '+' not in sys.version (repository builds have a '+' and the test currently work for them).  However, neither solution would work on *nix, which seems to have a completely different failure path to the same end result.

Are distutils and test_distutils maintained at all? (2005) says it also works with vc10 (2008, used for 2.7) but makes no mention of vc11 (2010, used for 3.3,3.4).

Nick, what do you think we should do with this? I think that when python is installed and working as well as we expect, the test suite should pass, so any failures indicate a problem with the particular installation. I think this is especially important on Windows, with newbies who do not know distutils from, say, itertools.
Date User Action Args
2013-09-01 22:50:35terry.reedysetrecipients: + terry.reedy, ncoghlan, tarek, eric.araujo, henry.precheur, alexis
2013-09-01 22:50:35terry.reedysetmessageid: <>
2013-09-01 22:50:35terry.reedylinkissue12420 messages
2013-09-01 22:50:34terry.reedycreate