Drop requirement on which in Python system tests (#18588)
This commit is contained in:
@@ -152,13 +152,9 @@ if __name__ == "__main__":
|
||||
if code.returncode != 0:
|
||||
raise Exception("The package `pylint` isn't installed (but should be).")
|
||||
|
||||
# TODO(charlie): Windows is failing to find the `pylint` binary, despite
|
||||
# confirmation that it's being written to the intended location.
|
||||
if os.name != "nt":
|
||||
logging.info("Checking that `pylint` is in the path.")
|
||||
code = subprocess.run(["which", "pylint"], cwd=temp_dir)
|
||||
if code.returncode != 0:
|
||||
raise Exception("The package `pylint` isn't in the path.")
|
||||
logging.info("Checking that `pylint` is in the path.")
|
||||
if shutil.which("pylint") is None:
|
||||
raise Exception("The package `pylint` isn't in the path.")
|
||||
|
||||
# Uninstall the package (`pylint`).
|
||||
logging.info("Uninstalling the package `pylint`.")
|
||||
|
||||
Reference in New Issue
Block a user