From 3c4c18721f13ee360a52778fed74600e0d810e89 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 4 Sep 2021 09:45:17 -0700 Subject: [PATCH] silence Pylint import-errors about regression_test_helpers I do not know why, but Pylint does not understand this import while Python itself does. I have tried different variations, but Pylint complains about all of them. --- tests/regression_tests/shapes/shapes.py | 2 +- tests/regression_tests/shapes/test_shapes.py | 2 +- tests/regression_tests/vuln/vuln.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/regression_tests/shapes/shapes.py b/tests/regression_tests/shapes/shapes.py index f6b3761e8..69e4ab03b 100644 --- a/tests/regression_tests/shapes/shapes.py +++ b/tests/regression_tests/shapes/shapes.py @@ -9,7 +9,7 @@ import sys # Import helper function to compare graphs from tests/regressions_tests sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) from regression_test_helpers import compare_graphs \ - # pylint: disable=wrong-import-position + # pylint: disable=import-error,wrong-import-position shapes = [ "box", diff --git a/tests/regression_tests/shapes/test_shapes.py b/tests/regression_tests/shapes/test_shapes.py index 2c10762a7..688dc3712 100644 --- a/tests/regression_tests/shapes/test_shapes.py +++ b/tests/regression_tests/shapes/test_shapes.py @@ -11,7 +11,7 @@ import pytest # Import helper function to compare graphs from tests/regressions_tests sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) from regression_test_helpers import compare_graphs \ - # pylint: disable=wrong-import-position + # pylint: disable=import-error,wrong-import-position shapes = [ "box", diff --git a/tests/regression_tests/vuln/vuln.py b/tests/regression_tests/vuln/vuln.py index cb2737a21..3448aa3e3 100644 --- a/tests/regression_tests/vuln/vuln.py +++ b/tests/regression_tests/vuln/vuln.py @@ -11,7 +11,7 @@ from pathlib import Path # Import helper function to compare graphs from tests/regressions_tests sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) from regression_test_helpers import compare_graphs \ - # pylint: disable=wrong-import-position + # pylint: disable=import-error,wrong-import-position vulnfiles = [ "nullderefrebuildlist" -- 2.40.0