summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-06-11 06:16:48 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-06-11 06:16:48 (GMT)
commitade2c216e17d519bca6a9401c938e1b3ec374746 (patch)
tree349444711710d0f8e35318ed621db47622aa506e
parent68a57ac4114d956340d78fab68d3becd30ed2e01 (diff)
downloadcpython-ade2c216e17d519bca6a9401c938e1b3ec374746.zip
cpython-ade2c216e17d519bca6a9401c938e1b3ec374746.tar.gz
cpython-ade2c216e17d519bca6a9401c938e1b3ec374746.tar.bz2
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.
-rw-r--r--Lib/test/test_sundry.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_sundry.py b/Lib/test/test_sundry.py
index b759a0a..e71852b 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