--- 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()