From ade2c216e17d519bca6a9401c938e1b3ec374746 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 11 Jun 2007 06:16:48 +0000 Subject: [PATCH] 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. --- Lib/test/test_sundry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_sundry.py b/Lib/test/test_sundry.py index b759a0a41c2..e71852bea0f 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