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