# HG changeset patch # User Sylvain Thénault # Date 1286523804 -7200 # Node ID 6003dc2035672730cf6e7edc42e0abbca89cd1b5 # Parent 370357e688377d8faf71a2065b2fd6eb034c71e9 [test] skip test when dbhelper has no underlying dbapi module available diff -r 370357e68837 -r 6003dc203567 devtools/repotest.py --- a/devtools/repotest.py Fri Oct 08 07:48:37 2010 +0200 +++ b/devtools/repotest.py Fri Oct 08 09:43:24 2010 +0200 @@ -158,7 +158,10 @@ ExecutionPlan._check_permissions = _dummy_check_permissions rqlannotation._select_principal = _select_principal if self.backend is not None: - dbhelper = get_db_helper(self.backend) + try: + dbhelper = get_db_helper(self.backend) + except ImportError, ex: + self.skipTest(str(ex)) self.o = SQLGenerator(self.schema, dbhelper) def tearDown(self):