Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RQL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
RQL
Commits
57b59294d79e
Commit
57b59294d79e
authored
14 years ago
by
Sylvain Thénault
Browse files
Options
Downloads
Patches
Plain Diff
can't raise SkipTest in unittest2 setUp
parent
257a78538ff2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/unittest_compare.py
+4
-2
4 additions, 2 deletions
test/unittest_compare.py
with
4 additions
and
2 deletions
test/unittest_compare.py
+
4
−
2
View file @
57b59294
...
@@ -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
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment