Skip to content
Snippets Groups Projects
Commit 57b59294d79e authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

can't raise SkipTest in unittest2 setUp

parent 257a78538ff2
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# #
# You should have received a copy of the GNU Lesser General Public License along # You should have received a copy of the GNU Lesser General Public License along
# with rql. If not, see <http://www.gnu.org/licenses/>. # with rql. If not, see <http://www.gnu.org/licenses/>.
from logilab.common.testlib import TestCase, unittest_main from logilab.common.testlib import TestCase, SkipTest, unittest_main
from rql import RQLHelper from rql import RQLHelper
from unittest_analyze import RelationSchema, EntitySchema, DummySchema as BaseSchema from unittest_analyze import RelationSchema, EntitySchema, DummySchema as BaseSchema
...@@ -36,6 +36,9 @@ ...@@ -36,6 +36,9 @@
class RQLCompareClassTest(TestCase): class RQLCompareClassTest(TestCase):
""" Compare RQL strings """ """ Compare RQL strings """
@classmethod
def setUpClass(cls):
raise SkipTest('broken')
def setUp(self): def setUp(self):
self.h = RQLHelper(DummySchema(), None) self.h = RQLHelper(DummySchema(), None)
...@@ -39,7 +42,6 @@ ...@@ -39,7 +42,6 @@
def setUp(self): def setUp(self):
self.h = RQLHelper(DummySchema(), None) self.h = RQLHelper(DummySchema(), None)
self.skipTest('broken')
def _compareEquivalent(self,r1,r2): def _compareEquivalent(self,r1,r2):
"""fails if the RQL strings r1 and r2 are equivalent""" """fails if the RQL strings r1 and r2 are equivalent"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment