]> granicus.if.org Git - graphviz/commitdiff
tests: fix 'gvtest' import adjustment
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 22 Apr 2022 04:17:57 +0000 (21:17 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 23 Apr 2022 15:00:34 +0000 (08:00 -0700)
This appended path was clearly wrong. Yet this test was running (and passing) in
CI. It seems somehow `./rtest` is already in the `$PYTHONPATH` in CI. A bit
mysterious, but this correction lets the test suite run locally correctly too.

tests/regression_tests/large/test_large_graphs.py

index 548f6af48d5c98cbd54749a6889a6571db09b178..7c7741605c705b801cb98cb6850bb9a649704b00 100644 (file)
@@ -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__), "../../../rtest"))
 from gvtest import dot #pylint: disable=wrong-import-position
 
 @pytest.mark.skipif(platform.system() == "Windows" and