#NEWLINE# def test_bad_types( self ) : #NEWLINE# #INDENT# for op in ( '+' , '-' , '~' ) : #NEWLINE# #INDENT# self . assertRaises ( TypeError , eval , ( self + "b'a'" ) ) #NEWLINE# self . assertRaises ( TypeError , eval , ( op + "'a'" ) ) #NEWLINE# #UNINDENT# self . assertRaises ( TypeError , eval , '~2j' ) #NEWLINE# self . assertRaises ( TypeError , eval , '~2.0' )