[lit] Fix bug when using Python3 where a failing test would not show