]> granicus.if.org Git - graphviz/commitdiff
test 1594: [nfc] tell 'subprocess' to discard stdout
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 1 Feb 2022 10:26:56 +0000 (21:26 +1100)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 4 Feb 2022 06:58:44 +0000 (17:58 +1100)
This test case was capturing stdout and then discarding it. It is more efficient
to just attach stdout directly to /dev/null.

rtest/test_regression.py

index b12a4f785fd7037e065d5267f8dcde5b9054352e..5fe096c61bad62821fa51136638c136139ebf146 100644 (file)
@@ -509,7 +509,7 @@ def test_1594():
 
   # run GVPR with our (malformed) input program
   with subprocess.Popen(["gvpr", "-f", input], stdin=subprocess.PIPE,
-                        stdout=subprocess.PIPE, stderr=subprocess.PIPE,
+                        stdout=subprocess.DEVNULL, stderr=subprocess.PIPE,
                         universal_newlines=True) as p:
     _, stderr = p.communicate()