From: Matthew Fernandez Date: Sun, 31 May 2020 17:22:07 +0000 (-0700) Subject: write output of long chain test to /dev/null X-Git-Tag: 2.44.1~31^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=632fe0bd1cfc6a4f636db4f85206aff6720bdc6b;p=graphviz write output of long chain test to /dev/null This avoids generating a large file in the source tree that we don't need. In my runs in a Linux VM, this also significantly speeds up the test suite. Closes #1720. --- diff --git a/tests/regression_tests/large/test_large_graphs.py b/tests/regression_tests/large/test_large_graphs.py index 5a94fbb95..b6f69c9b0 100644 --- a/tests/regression_tests/large/test_large_graphs.py +++ b/tests/regression_tests/large/test_large_graphs.py @@ -5,9 +5,6 @@ import os import sys -TEST_DIR = os.path.dirname(os.path.realpath(__file__)) - - class TestLargeGraphs(TestCase): @skipIf(sys.platform == 'win32', reason='https://gitlab.com/graphviz/graphviz/-/issues/1710') def test_long_chain(self): @@ -32,5 +29,5 @@ class TestLargeGraphs(TestCase): graph.render("long_chain") """ subprocess.check_call([ - 'dot', '-Tsvg', '-O', os.path.join(TEST_DIR, 'long_chain') + 'dot', '-Tsvg', '-O', os.devnull ])