mirror of https://github.com/apache/lucene.git
Fix syntax warning in smokeTestRelease.py (#1746)
while verifying the 8.6.1 release with latest python(3.8.5), observed one SyntaxWarning. https://adamj.eu/tech/2020/01/21/why-does-python-3-8-syntaxwarning-for-is-literal/
This commit is contained in:
parent
0b55c94ad6
commit
d2cc022fcf
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue