equal
deleted
inserted
replaced
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) |