diff --git a/.travis.yml b/.travis.yml index 7bf9194d31..b666a59201 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: python python: - - "2.7" + - "3.8" cache: pip diff --git a/bin/runUnitTests.py b/bin/runUnitTests.py index 6606c87bad..f7fb413262 100755 --- a/bin/runUnitTests.py +++ b/bin/runUnitTests.py @@ -43,9 +43,9 @@ def _validate_html(path): n_msg = len(errMsg) for i in range(n_msg): if i == 0: - print "The following malformed html syntax has been found:\n%s" % errMsg[i] + print("The following malformed html syntax has been found:\n%s" % errMsg[i]) else: - print errMsg[i] + print(errMsg[i]) if n_msg == 0: return 0 @@ -57,7 +57,7 @@ def _setEnvironmentVariables(var, value): ''' import os import platform - if os.environ.has_key(var): + if var in os.environ: if platform.system() == "Windows": os.environ[var] = value + ";" + os.environ[var] else: