[libcxx-commits] [libcxx] 0fcb898 - [libc++] [test] Fix a Python warning.
Arthur O'Dwyer via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Apr 26 13:23:34 PDT 2021
Author: Arthur O'Dwyer
Date: 2021-04-26T16:22:43-04:00
New Revision: 0fcb898f10267dc132609eee3730ace4b3b40670
URL: https://github.com/llvm/llvm-project/commit/0fcb898f10267dc132609eee3730ace4b3b40670
DIFF: https://github.com/llvm/llvm-project/commit/0fcb898f10267dc132609eee3730ace4b3b40670.diff
LOG: [libc++] [test] Fix a Python warning.
params.py:106: SyntaxWarning: "is" with a literal. Did you mean "=="?
Added:
Modified:
libcxx/utils/libcxx/test/params.py
Removed:
################################################################################
diff --git a/libcxx/utils/libcxx/test/params.py b/libcxx/utils/libcxx/test/params.py
index ddf277dea2469..45cba8c6d1b1f 100644
--- a/libcxx/utils/libcxx/test/params.py
+++ b/libcxx/utils/libcxx/test/params.py
@@ -102,7 +102,7 @@ def getStdFlag(cfg, std):
Parameter(name='debug_level', choices=['', '0', '1'], type=str, default='',
help="The debugging level to enable in the test suite.",
- actions=lambda debugLevel: [] if debugLevel is '' else [
+ actions=lambda debugLevel: [] if debugLevel == '' else [
AddFeature('debug_level={}'.format(debugLevel)),
AddCompileFlag('-D_LIBCPP_DEBUG={}'.format(debugLevel))
]),
More information about the libcxx-commits
mailing list