diff -r 09be48c01fa4 -r de4367ef4e5e cubicweb/test/unittest_utils.py --- a/cubicweb/test/unittest_utils.py Thu Jan 14 17:42:22 2016 +0100 +++ b/cubicweb/test/unittest_utils.py Tue Jan 19 16:44:34 2016 +0100 @@ -17,13 +17,14 @@ # with CubicWeb. If not, see . """unit tests for module cubicweb.utils""" -import re +import datetime import decimal -import datetime +import doctest +import re from six.moves import range -from logilab.common.testlib import TestCase, DocTest, unittest_main +from logilab.common.testlib import TestCase, unittest_main from cubicweb.devtools.testlib import CubicWebTC from cubicweb.utils import (make_uid, UStringIO, RepeatList, HTMLHead, @@ -312,8 +313,12 @@ finally: self.config.global_set_option('concat-resources', True) -class DocTest(DocTest): - from cubicweb import utils as module + +def load_tests(loader, tests, ignore): + import cubicweb.utils + tests.addTests(doctest.DocTestSuite(cubicweb.utils)) + return tests + if __name__ == '__main__': unittest_main()