def test_bad_inheritance():
 def f():
  class x(System.Single, ):
   pass
 def g():
  class x(System.Version, ):
   pass
 AssertErrorWithPartialMessage(TypeError, 'System.Single', f)
 AssertErrorWithPartialMessage(TypeError, 'System.Version', g)

def test_bad_inheritance ( ) : def f ( ) : class x ( System . Single , ) : pass def g ( ) : class x ( System . Version , ) : pass AssertErrorWithPartialMessage ( TypeError , 'System.Single' , f ) AssertErrorWithPartialMessage ( TypeError , 'System.Version' , g )
verify a bad inheritance reports the type name youre inheriting from .