[cleanup] Use plain unittest main in unittest_rqlrewrite
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 21 Apr 2017 10:29:07 +0200
changeset 12177 8cc3af4d9c3a
parent 12176 c23aa49b2336
child 12178 4cf9f257e0bf
[cleanup] Use plain unittest main in unittest_rqlrewrite
cubicweb/test/unittest_rqlrewrite.py
--- 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()