#NEWLINE# def test_ad_hoc_types( self ) : #NEWLINE# #INDENT# 'test storage of bind processors, result processors\n        in dialect-wide registry.' #NEWLINE# from sqlalchemy.dialects import mysql , postgresql , sqlite #NEWLINE# from sqlalchemy import types #NEWLINE# eng = engines . testing_engine ( ) #NEWLINE# for args in ( ( types . Integer , ) , ( types . String , ) , ( types . PickleType , ) , ( types . Enum , 'a' , 'b' , 'c' ) , ( sqlite . DATETIME , ) , ( postgresql . ENUM , 'a' , 'b' , 'c' ) , ( types . Interval , ) , ( postgresql . INTERVAL , ) , ( mysql . VARCHAR , ) ) : #NEWLINE# #INDENT# @ profile_memory ( ) #NEWLINE# def go( ) : #NEWLINE# #INDENT# type_ = args [ 0 ] ( * args [ 1 : ] ) #NEWLINE# bp = type_ . _cached_bind_processor ( eng . dialect ) #NEWLINE# rp = type_ . _cached_result_processor ( eng . dialect , 0 ) #NEWLINE# ( bp , rp ) #NEWLINE# #UNINDENT# go ( ) #NEWLINE# #UNINDENT# assert ( not go . dialect . _type_memos )