From 84c5e7b5ab65b9ba5b936be7432e7b1d5adad179 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 21 Mar 2013 17:52:34 -0400 Subject: testsuite: fix checks for pylint/pep8 on py3k --- testsuite/Testsrc/test_code_checks.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'testsuite') 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 -- cgit v1.2.3-1-g7c22