Fix compilation warning on 2.7+ ("unused function do_assert")