# HG changeset patch # User Sylvain Thénault <sylvain.thenault@logilab.fr> # Date 1295946525 -3600 # Tue Jan 25 10:08:45 2011 +0100 # Branch stable # Node ID 57b59294d79e88ad15c38e1796a31640c873df3c # Parent 257a78538ff219416f2c161574ec403f7b10bac9 can't raise SkipTest in unittest2 setUp diff --git a/test/unittest_compare.py b/test/unittest_compare.py --- a/test/unittest_compare.py +++ b/test/unittest_compare.py @@ -15,7 +15,7 @@ # # You should have received a copy of the GNU Lesser General Public License along # 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 unittest_analyze import RelationSchema, EntitySchema, DummySchema as BaseSchema @@ -36,10 +36,12 @@ class RQLCompareClassTest(TestCase): """ Compare RQL strings """ + @classmethod + def setUpClass(cls): + raise SkipTest('broken') def setUp(self): self.h = RQLHelper(DummySchema(), None) - self.skipTest('broken') def _compareEquivalent(self,r1,r2): """fails if the RQL strings r1 and r2 are equivalent"""