From: Neal Norwitz Date: Mon, 11 Jun 2007 06:16:48 +0000 (+0000) Subject: Not sure why this only fails sometimes on Unix machines. Better X-Git-Tag: v2.6a1~1624 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ade2c216e17d519bca6a9401c938e1b3ec374746;p=thirdparty%2FPython%2Fcpython.git Not sure why this only fails sometimes on Unix machines. Better to disable it and only import msvccompiler on Windows since that's the only place it can work anyways. --- diff --git a/Lib/test/test_sundry.py b/Lib/test/test_sundry.py index b759a0a41c20..e71852bea0f5 100644 --- a/Lib/test/test_sundry.py +++ b/Lib/test/test_sundry.py @@ -38,7 +38,8 @@ with guard_warnings_filter(): import distutils.file_util import distutils.filelist import distutils.log - import distutils.msvccompiler + if sys.platform.startswith('win'): + import distutils.msvccompiler import distutils.mwerkscompiler import distutils.sysconfig import distutils.text_file