[test] Use plain unittest in unittest_cwctl.py
authorDenis Laxalde <denis.laxalde@logilab.fr>
Mon, 12 Sep 2016 09:13:22 +0200
changeset 11469 e0538fee4caa
parent 11468 d83676aaea21
child 11470 c0167228c12c
[test] Use plain unittest in unittest_cwctl.py
cubicweb/test/unittest_cwctl.py
--- a/cubicweb/test/unittest_cwctl.py	Mon Sep 12 09:03:07 2016 +0200
+++ b/cubicweb/test/unittest_cwctl.py	Mon Sep 12 09:13:22 2016 +0200
@@ -19,11 +19,10 @@
 import os
 from os.path import join
 from io import StringIO, BytesIO
+import unittest
 
 from six import PY2
 
-from logilab.common.testlib import TestCase, unittest_main
-
 from cubicweb.cwconfig import CubicWebConfiguration
 from cubicweb.devtools.testlib import CubicWebTC
 from cubicweb.server.migractions import ServerMigrationHelper
@@ -31,10 +30,12 @@
 CubicWebConfiguration.load_cwctl_plugins() # XXX necessary?
 
 
-class CubicWebCtlTC(TestCase):
+class CubicWebCtlTC(unittest.TestCase):
+
     def setUp(self):
         self.stream = BytesIO() if PY2 else StringIO()
         sys.stdout = self.stream
+
     def tearDown(self):
         sys.stdout = sys.__stdout__
 
@@ -65,4 +66,4 @@
 
 
 if __name__ == '__main__':
-    unittest_main()
+    unittest.main()