
Enables the import-error pylint check on //testing. Most errors are fixed by updating the PYTHONPATH used by pylint to include the necessary directories, although some import errors are simply suppressed (most commonly for vpython-provided modules). Also takes this opportunity to add comments about where each block of non-standard imports comes from. This was already present in a number of places, but not everywhere. Bug: 353942917 Change-Id: I506d35e5a6ae56471618e6b4af57dd2ecb64dd7b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6092016 Commit-Queue: Brian Sheedy <bsheedy@chromium.org> Reviewed-by: Ben Pastene <bpastene@chromium.org> Reviewed-by: Paul Semel <paulsemel@chromium.org> Cr-Commit-Position: refs/heads/main@{#1396194}
18 lines
459 B
Python
Executable File
18 lines
459 B
Python
Executable File
#!/usr/bin/env python
|
|
# Copyright 2019 The Chromium Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
"""Script for use in test_env unittests."""
|
|
|
|
import os
|
|
import sys
|
|
|
|
# //testing imports.
|
|
import test_env
|
|
|
|
HERE = os.path.dirname(os.path.abspath(__file__))
|
|
TEST_SCRIPT = os.path.join(HERE, 'test_env_test_script.py')
|
|
|
|
if __name__ == '__main__':
|
|
test_env.run_command([sys.executable, TEST_SCRIPT])
|