--- a/cubicweb/test/unittest_rqlrewrite.py Tue Apr 25 17:35:29 2017 +0200
+++ b/cubicweb/test/unittest_rqlrewrite.py Fri Apr 21 10:29:07 2017 +0200
@@ -18,7 +18,6 @@
from six import string_types
-from logilab.common.testlib import unittest_main, TestCase
from logilab.common.testlib import mock_object
from logilab.common.decorators import monkeypatch
from yams import BadSchemaDefinition
@@ -29,7 +28,7 @@
from cubicweb.rqlrewrite import RQLRewriter
from cubicweb.schema import RRQLExpression, ERQLExpression
from cubicweb.devtools import repotest
-from cubicweb.devtools.testlib import CubicWebTC
+from cubicweb.devtools.testlib import CubicWebTC, TestCase
def setUpModule(*args):
@@ -912,4 +911,5 @@
if __name__ == '__main__':
- unittest_main()
+ import unittest
+ unittest.main()