]> granicus.if.org Git - graphviz/commitdiff
tests: fix path from which to import 'gvtest'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 15 Nov 2022 01:19:02 +0000 (17:19 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 17 Nov 2022 01:58:44 +0000 (17:58 -0800)
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.

tests/regression_tests/large/test_large_graphs.py

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