Converted lint check_* functions to raise AssertionError instead of assert

So they still check when PYTHONOPTIMIZE>=1
2 files changed