def verify_type_error(self, code): with self.assertRaises(pythran.types.tog.PythranTypeError): _, eh = pythran.generate_cxx("dumbo", dedent(code)) eh()