# HG changeset patch # User Denis Laxalde # Date 1473664402 -7200 # Node ID e0538fee4caae43de7034ca6b4a681594c473d6a # Parent d83676aaea212ff1ebb8464cd50bc6c206966cc2 [test] Use plain unittest in unittest_cwctl.py diff -r d83676aaea21 -r e0538fee4caa 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()