summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/Testsrc/test_code_checks.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/testsuite/Testsrc/test_code_checks.py b/testsuite/Testsrc/test_code_checks.py
index 85aea29d6..a38710fd4 100644
--- a/testsuite/Testsrc/test_code_checks.py
+++ b/testsuite/Testsrc/test_code_checks.py
@@ -160,10 +160,8 @@ class CodeTestCase(Bcfg2TestCase):
def has_exec(self):
if self.has_command is None:
try:
- proc = Popen(self.command,
- stdin=PIPE, stdout=PIPE, stderr=STDOUT)
- proc.communicate(input="\n")
- proc.wait()
+ Popen(self.command,
+ stdin=PIPE, stdout=PIPE, stderr=STDOUT).wait()
self.has_command = True
except OSError:
self.has_command = False