# HG changeset patch # User Patrick Mezard # Date 1299417597 -3600 # Node ID b3330b8e1e6f6f42959f089d1f18f63ac04a5cb3 # Parent d24e97fd52a9bcde4bce4a7b6acb01feee394e00 run-tests: handle mixed comment lines in blacklists diff -r d24e97fd52a9 -r b3330b8e1e6f tests/run-tests.py --- a/tests/run-tests.py Sun Mar 06 14:17:47 2011 +0100 +++ b/tests/run-tests.py Sun Mar 06 14:19:57 2011 +0100 @@ -227,8 +227,8 @@ continue for line in f.readlines(): - line = line.strip() - if line and not line.startswith('#'): + line = line.split('#', 1)[0].strip() + if line: blacklist[line] = filename f.close()