devtools/__init__.py
changeset 10064 91a8f355c082
parent 10063 335fa90d5ef4
child 10175 2659f8529a43
equal deleted inserted replaced
10063:335fa90d5ef4 10064:91a8f355c082
   290 
   290 
   291 DEFAULT_EMPTY_DB_ID = '__default_empty_db__'
   291 DEFAULT_EMPTY_DB_ID = '__default_empty_db__'
   292 
   292 
   293 class TestDataBaseHandler(object):
   293 class TestDataBaseHandler(object):
   294     DRIVER = None
   294     DRIVER = None
       
   295 
   295     db_cache = {}
   296     db_cache = {}
   296     explored_glob = set()
   297     explored_glob = set()
   297 
   298 
   298     def __init__(self, config, init_config=None):
   299     def __init__(self, config, init_config=None):
   299         self.config = config
   300         self.config = config
   532 
   533 
   533 ### postgres test database handling ############################################
   534 ### postgres test database handling ############################################
   534 
   535 
   535 class PostgresTestDataBaseHandler(TestDataBaseHandler):
   536 class PostgresTestDataBaseHandler(TestDataBaseHandler):
   536     DRIVER = 'postgres'
   537     DRIVER = 'postgres'
       
   538 
       
   539     # Separate db_cache for PG databases, to avoid collisions with sqlite dbs
       
   540     db_cache = {}
       
   541     explored_glob = set()
   537 
   542 
   538     __CTL = set()
   543     __CTL = set()
   539 
   544 
   540     @classmethod
   545     @classmethod
   541     def killall(cls):
   546     def killall(cls):