summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-03-21 17:52:34 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-03-21 17:55:44 -0400
commit84c5e7b5ab65b9ba5b936be7432e7b1d5adad179 (patch)
tree4d768de31737c3cd110f5f904a7b9a1215457e69
parent1ca7ed2c89c7cd6fdc84b62c79a1b19221e8b9b8 (diff)
downloadbcfg2-84c5e7b5ab65b9ba5b936be7432e7b1d5adad179.tar.gz
bcfg2-84c5e7b5ab65b9ba5b936be7432e7b1d5adad179.tar.bz2
bcfg2-84c5e7b5ab65b9ba5b936be7432e7b1d5adad179.zip
testsuite: fix checks for pylint/pep8 on py3k
-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