Commit 1215561b authored by Jason R. Coombs's avatar Jason R. Coombs

Suppress ImportError for winreg as the module is only available on some...

Suppress ImportError for winreg as the module is only available on some platforms. Allows unit testing of module on non-Windows platforms.
parent 30de1af5
......@@ -15,7 +15,9 @@ for older versions in distutils.msvc9compiler and distutils.msvccompiler.
import os
import subprocess
import winreg
import contextlib
with contextlib.suppress(ImportError):
import winreg
from distutils.errors import DistutilsExecError, DistutilsPlatformError, \
CompileError, LibError, LinkError
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment