From 3e51949812d300097f0df640ca93f1efd551fbc4 Mon Sep 17 00:00:00 2001 From: luz paz Date: Thu, 1 Dec 2022 09:18:15 -0500 Subject: [PATCH] Fix 'testing equality to None' python issue "Testing whether an object is '`None`' using the `==` operator is inefficient and potentially incorrect." --- contrib/utilities/parse_ctest_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/utilities/parse_ctest_output.py b/contrib/utilities/parse_ctest_output.py index fd034c29d4..a11bce618a 100644 --- a/contrib/utilities/parse_ctest_output.py +++ b/contrib/utilities/parse_ctest_output.py @@ -77,7 +77,7 @@ def parse_revision(dirname): status = 4 if fail: text = test.find('Results').find('Measurement').find('Value').text - if text == None: + if text is None: text="" failtext = text.encode('utf-8') failtextlines = failtext.replace('"','').split('\n') -- 2.39.5