tests/test-demandimport.py
changeset 51740 be227c60a3e0
parent 50925 d718eddf01d9
child 52009 5713adc51f2a
--- a/tests/test-demandimport.py	Thu Jun 29 20:02:27 2023 +0200
+++ b/tests/test-demandimport.py	Mon Jun 26 15:16:51 2023 +0200
@@ -31,18 +31,6 @@
 except ImportError:
     moduletype = types.ModuleType
 
-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