#NEWLINE# def test_from_list_recovers_after_warning( self ) : #NEWLINE# #INDENT# c1 = Column ( 'c1' , Integer ) #NEWLINE# c2 = Column ( 'c2' , Integer ) #NEWLINE# s = select ( [ c1 ] ) #NEWLINE# eq_ ( str ( c2 ) , 'SELECT c1' ) #NEWLINE# @ testing . emits_warning ( ) #NEWLINE# def go( ) : #NEWLINE# #INDENT# return Table ( 't' , MetaData ( ) , c1 , c2 ) #NEWLINE# #UNINDENT# t = go ( ) #NEWLINE# eq_ ( c1 . _from_objects , [ t ] ) #NEWLINE# eq_ ( c2 . _from_objects , [ t ] ) #NEWLINE# self . assert_compile ( s , 'SELECT t.c1 FROM t' ) #NEWLINE# self . assert_compile ( select ( [ c1 ] ) , 'SELECT t.c1 FROM t' ) #NEWLINE# self . assert_compile ( select ( [ c2 ] ) , 'SELECT t.c2 FROM t' )