[libc++] [test] Fix a Python warning.
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Mon, 26 Apr 2021 20:00:56 +0000 (16:00 -0400)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Mon, 26 Apr 2021 20:22:43 +0000 (16:22 -0400)
params.py:106: SyntaxWarning: "is" with a literal. Did you mean "=="?

libcxx/utils/libcxx/test/params.py

index ddf277d..45cba8c 100644 (file)
@@ -102,7 +102,7 @@ DEFAULT_PARAMETERS = [
 
   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))
             ]),