From 52d834ff9935c6e967abcefbc753d1e743a3c508 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 12 Dec 2021 15:48:59 -0800 Subject: [PATCH] simplify test_1855 call to 'dot' Using the wrapper added in 297ed0bc7b61b2a6616c335726334836c8ffcc10, we can write this code more simply and concisely. --- rtest/test_regression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtest/test_regression.py b/rtest/test_regression.py index 7672d4e7a..5cde87871 100644 --- a/rtest/test_regression.py +++ b/rtest/test_regression.py @@ -825,7 +825,7 @@ def test_1855(): assert src.exists(), "unexpectedly missing test case" # run it through Graphviz - svg = subprocess.check_output(["dot", "-Tsvg", src], universal_newlines=True) + svg = dot("svg", src) # find the graph element root = ET.fromstring(svg) -- 2.40.0