tests/test-demandimport.py
branchstable
changeset 23643 2205d00b6d2b
parent 21025 54af51c18c4c
child 27535 0d0f4070f6d7
--- a/tests/test-demandimport.py	Sun Dec 21 15:06:54 2014 -0500
+++ b/tests/test-demandimport.py	Mon Dec 22 17:27:31 2014 -0500
@@ -1,6 +1,16 @@
 from mercurial import demandimport
 demandimport.enable()
 
+import os
+if os.name != 'nt':
+    try:
+        import distutils.msvc9compiler
+        print ('distutils.msvc9compiler needs to be an immediate '
+               'importerror on non-windows platforms')
+        distutils.msvc9compiler
+    except ImportError:
+        pass
+
 import re
 
 rsub = re.sub