From: Matthew Fernandez Date: Tue, 15 Nov 2022 01:19:02 +0000 (-0800) Subject: tests: fix path from which to import 'gvtest' X-Git-Tag: 7.0.2~5^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d62eff3b59cd8659ace7fcc69cd7f1e9d7882118;p=graphviz tests: fix path from which to import 'gvtest' This has been wrong since 0e19cdb9bff60fdeb1942f5dca677db9d8a24062 removed the rtest directory. And yet the tests in this file somehow still run correctly in CI. I can only guess that insufficient test isolation under Pytest results in some other test file putting the correct path in `sys.path` prior to this file being processed. --- diff --git a/tests/regression_tests/large/test_large_graphs.py b/tests/regression_tests/large/test_large_graphs.py index 7c7741605..bb32196c6 100644 --- a/tests/regression_tests/large/test_large_graphs.py +++ b/tests/regression_tests/large/test_large_graphs.py @@ -9,7 +9,7 @@ import subprocess import sys import pytest -sys.path.append(os.path.join(os.path.dirname(__file__), "../../../rtest")) +sys.path.append(os.path.join(os.path.dirname(__file__), "../../../tests")) from gvtest import dot #pylint: disable=wrong-import-position @pytest.mark.skipif(platform.system() == "Windows" and