Commit c2b5c582 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #726 from undingen/fix_test

Fix a small test output difference on Ubuntu 15.04
parents 7d9da5ef e5e19fb6
...@@ -6,7 +6,13 @@ me = sys.executable ...@@ -6,7 +6,13 @@ me = sys.executable
with open('/dev/null')as ignore: with open('/dev/null')as ignore:
def run(args): def run(args):
print subprocess.call([me] + args, stderr=ignore) p = subprocess.Popen([me] + args, stdout = subprocess.PIPE, stderr=ignore)
output, err = p.communicate()
for num, line in enumerate(output.split('\n')):
if num > 5:
break
print line
print p.returncode
# just prints out the usage # just prints out the usage
run(["-m", "pydoc"]) run(["-m", "pydoc"])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment