]> granicus.if.org Git - graphviz/commitdiff
silence Pylint import-errors about regression_test_helpers
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 16:45:17 +0000 (09:45 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 9 Sep 2021 02:16:32 +0000 (19:16 -0700)
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
tests/regression_tests/shapes/test_shapes.py
tests/regression_tests/vuln/vuln.py

index f6b3761e8acf3d9bbbcfee398695f20fcc71b62e..69e4ab03bbf014ee39939d06a72c85625079b5a1 100644 (file)
@@ -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",
index 2c10762a78c3c6cb744dbcf9574c3ad0aae8aa08..688dc3712080fa19615a7a208fe529a2239718b0 100644 (file)
@@ -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",
index cb2737a21600f6e23e5fb3f6dd33de5974b68e32..3448aa3e37cef03fbdd5f68a75db50d7e4cbec51 100644 (file)
@@ -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"