def test_bad_repr():
 with nt.assert_raises(ZeroDivisionError):
  pretty.pretty(BadRepr())

def test_bad_repr ( ) : with nt . assert_raises ( ZeroDivisionError ) : pretty . pretty ( BadRepr ( ) )
dont catch bad repr errors .