From 8b699b45fb025be6e1673a40f9f00277105faffb Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 25 Oct 2010 10:42:49 -0400 Subject: [PATCH] Use a PIPE to pass stdin to the executable in src/sorting/scaling.py. --- src/sorting/scaling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sorting/scaling.py b/src/sorting/scaling.py index 0d8d6d2..c62dc31 100755 --- a/src/sorting/scaling.py +++ b/src/sorting/scaling.py @@ -40,7 +40,7 @@ def run_test(executable, stdin=True, data_filename=None): contents = f.read() start = time.time() if stdin: - p = subprocess.Popen([executable], + p = subprocess.Popen([executable], stdin=subprocess.PIPE, stdout=open('/dev/null', 'w')) p.communicate(contents) else: -- 2.26.2