#NEWLINE# def test_autocommit_doesnt_raise_on_pending( self ) : #NEWLINE# #INDENT# ( User , users ) = ( self . classes . User , User . tables . users ) #NEWLINE# mapper ( User , users ) #NEWLINE# session = create_session ( autocommit = True ) #NEWLINE# session . add ( User ( name = 'ed' ) ) #NEWLINE# session . begin ( ) #NEWLINE# session . flush ( ) #NEWLINE# session . commit ( )