From: Matthew Fernandez Date: Sat, 4 Sep 2021 16:45:17 +0000 (-0700) Subject: silence Pylint import-errors about regression_test_helpers X-Git-Tag: 2.49.1~32^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c4c18721f13ee360a52778fed74600e0d810e89;p=graphviz 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. --- 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"