Apache Solr open-source search software
Fix syntax warning in smokeTestRelease.py (#1746)
S N Munendrad2cc022fcf2b
diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.pyindex 263287beb6b..0b899ed6784 100755--- a/dev-tools/scripts/smokeTestRelease.py+++ b/dev-tools/scripts/smokeTestRelease.py@@ -1317,7 +1317,7 @@ def confirmAllReleasesAreTestedForBackCompat(smokeVersion, unpackPath):command = 'ant test -Dtestcase=TestBackwardsCompatibility -Dtests.verbose=true'p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)stdout, stderr = p.communicate()- if p.returncode is not 0:+ if p.returncode != 0:# Not good: the test failed!raise RuntimeError('%s failed:\n%s' % (command, stdout))stdout = stdout.decode('utf-8',errors='replace').replace('\r\n','\n')