devtools/repotest.py
changeset 8695 358d8bed9626
parent 8544 3d049071957e
child 8773 21edcb0a5ed7
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
   153     @classmethod
   153     @classmethod
   154     def setUpClass(cls):
   154     def setUpClass(cls):
   155         if cls.backend is not None:
   155         if cls.backend is not None:
   156             try:
   156             try:
   157                 cls.dbhelper = get_db_helper(cls.backend)
   157                 cls.dbhelper = get_db_helper(cls.backend)
   158             except ImportError, ex:
   158             except ImportError as ex:
   159                 raise SkipTest(str(ex))
   159                 raise SkipTest(str(ex))
   160 
   160 
   161     def setUp(self):
   161     def setUp(self):
   162         self.repo = FakeRepo(self.schema)
   162         self.repo = FakeRepo(self.schema)
   163         self.repo.system_source = mock_object(dbdriver=self.backend)
   163         self.repo.system_source = mock_object(dbdriver=self.backend)