Commit 5b96b1b9 authored by Denis Bilenko's avatar Denis Bilenko

test__examples.py: fail when not tests are found

parent 7d1f6c34
......@@ -43,6 +43,9 @@ def main(tests=None):
util.log('! Failed examples:\n! - %s', '\n! - '.join(failed))
sys.exit(1)
if not tests:
sys.exit('No tests.')
if __name__ == '__main__':
main()
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