From 73eca8255b4c89a11f21fee3708269bcac6942bb Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 30 Apr 2019 16:38:10 -0700 Subject: run_unittests: Don't assume that VS like compilers have MSVC versions --- run_unittests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_unittests.py b/run_unittests.py index 8fe1fd5..9f6075b 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -981,7 +981,7 @@ class InternalTests(unittest.TestCase): toolset_ver = cc.get_toolset_version() self.assertIsNotNone(toolset_ver) # Visual Studio 2015 and older versions do not define VCToolsVersion - if int(''.join(cc.version.split('.')[0:2])) < 1910: + if cc.id == 'msvc' and int(''.join(cc.version.split('.')[0:2])) < 1910: return self.assertIn('VCToolsVersion', os.environ) vctools_ver = os.environ['VCToolsVersion'] -- cgit v1.1