From 8bf16ddea63ef3405bf00ba1fb26da0cd60b7b08 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Sun, 23 Apr 2017 17:01:16 -0700 Subject: py2/3 Allow SConfTests.py to function when pywin32 is not installed. --- src/engine/SCons/SConfTests.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/SCons/SConfTests.py b/src/engine/SCons/SConfTests.py index 0daf31c..f4c6f89 100644 --- a/src/engine/SCons/SConfTests.py +++ b/src/engine/SCons/SConfTests.py @@ -102,8 +102,11 @@ class SConfTestCase(unittest.TestCase): import SCons.Platform.win32 - file = SCons.Platform.win32._builtin_file - open = SCons.Platform.win32._builtin_open + try: + file = SCons.Platform.win32._builtin_file + open = SCons.Platform.win32._builtin_open + except AttributeError: + pass def _baseTryXXX(self, TryFunc): # TryCompile and TryLink are much the same, so we can test them -- cgit v0.12