From: Azharuddin Mohammed Date: Thu, 11 Jul 2019 21:45:48 +0000 (+0000) Subject: Fix a Python3 compatibility error X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=106409c59db91cda934883b757d9ab167ecd69ed;p=clang Fix a Python3 compatibility error File "clang/test/lit.cfg.py", line 186, in config.available_features.add('macos-sdk-' + macOSSDKVersion) TypeError: must be str, not bytes git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365832 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/lit.cfg.py b/test/lit.cfg.py index 4fd8eb32f8..ca8a05dbe8 100644 --- a/test/lit.cfg.py +++ b/test/lit.cfg.py @@ -183,7 +183,7 @@ if run_console_tests != 0: lit.util.usePlatformSdkOnDarwin(config, lit_config) macOSSDKVersion = lit.util.findPlatformSdkVersionOnMacOS(config, lit_config) if macOSSDKVersion is not None: - config.available_features.add('macos-sdk-' + macOSSDKVersion) + config.available_features.add('macos-sdk-' + str(macOSSDKVersion)) if os.path.exists('/etc/gentoo-release'): config.available_features.add('gentoo')