Commit 7a415669 authored by Denis Bilenko's avatar Denis Bilenko

runall.py: skip tests with _any_ syntax error

parent 01fd8c2f
...@@ -67,8 +67,8 @@ def main(): ...@@ -67,8 +67,8 @@ def main():
try: try:
py_compile.compile(test, doraise=True) py_compile.compile(test, doraise=True)
except py_compile.PyCompileError, ex: except py_compile.PyCompileError, ex:
if "SyntaxError: invalid syntax" in str(ex) and " with " in str(ex): if "SyntaxError: invalid syntax" in str(ex):
print 'skipping %s' % test print 'skipping %s:\n%s\n' % (test, ex)
tests.remove(test) tests.remove(test)
else: else:
raise raise
......
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