[PATCH 2 of 4 i18nfield V2] Use unittest

noe.gaumont at logilab.fr noe.gaumont at logilab.fr
Thu Mar 19 11:53:54 CET 2020


# HG changeset patch
# User Noe Gaumont <ngaumont at logilab.fr>
# Date 1584355800 -3600
#      Mon Mar 16 11:50:00 2020 +0100
# Node ID d75f627b6f79cc964469b0985bda3d1923bfdd8b
# Parent  a94a106c338a29b5ab4ac1aef44d1dab98442f1a
# Available At https://hg.logilab.org/review/cubes/i18nfield
#              hg pull https://hg.logilab.org/review/cubes/i18nfield -r d75f627b6f79
Use unittest

diff --git a/test/test_automaticWebTest.py b/test/test_automaticWebTest.py
--- a/test/test_automaticWebTest.py
+++ b/test/test_automaticWebTest.py
@@ -18,6 +18,7 @@
 
 """cubicweb-i18nfield automatic tests"""
 
+import unittest
 from cubicweb.devtools.testlib import AutomaticWebTest
 
 
@@ -37,5 +38,4 @@ class AutomaticWebTest(AutomaticWebTest)
 
 
 if __name__ == '__main__':
-    from logilab.common.testlib import unittest_main
-    unittest_main()
+    unittest.main()




More information about the cubicweb-devel mailing list