Author: Andreas Tille <tille@debian.org>
Last-Update: Mon, 11 Aug 2014 16:33:56 +0200
Description: Since we are not building with python-mpi4py (there is other
 trouble occuring with this as Build-Depends) we need to strip the warning
 from script output to make the test successfully passing

--- a/tests/all_tests.py
+++ b/tests/all_tests.py
@@ -67,6 +67,9 @@ def main():
         command = '%s %s -h' % (python_name, script_name)
         result = Popen(command,shell=True,universal_newlines=True,\
                        stdout=PIPE,stderr=STDOUT).stdout.read()
+        # remove warning cause by missing python-mpi4py
+        result = re.sub(r'(?m)^/usr/lib.*Not using MPI as mpi4py not found\n?', '', result)
+        result = re.sub(r'(?m)^\s*from cogent.util.parallel import MPI\n?', '', result)
         if not script_good_pattern.search(result):
             bad_scripts.append(script_name)
 
