[PATCH 1 of 6 signedrequest] [test] Use unittest.main()

Denis Laxalde denis.laxalde at logilab.fr
Fri Jun 1 12:28:32 CEST 2018


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1527843761 -7200
#      Fri Jun 01 11:02:41 2018 +0200
# Node ID 5aab89033d955ba7a72468ef0bb63e3e4c68eca8
# Parent  c16e7266d6b42dd6c2fb878a8ce94d086c1e0fc3
# Available At http://hg.logilab.org/review/cubes/signedrequest
#              hg pull http://hg.logilab.org/review/cubes/signedrequest -r 5aab89033d95
# EXP-Topic py3
[test] Use unittest.main()

diff --git a/test/test_pyramid.py b/test/test_pyramid.py
--- a/test/test_pyramid.py
+++ b/test/test_pyramid.py
@@ -71,5 +71,5 @@ class PyramidSignedRequestTC(SignedReque
 
 
 if __name__ == "__main__":
-    from logilab.common.testlib import unittest_main
-    unittest_main()
+    import unittest
+    unittest.main()
diff --git a/test/test_signedrequest.py b/test/test_signedrequest.py
--- a/test/test_signedrequest.py
+++ b/test/test_signedrequest.py
@@ -45,5 +45,5 @@ class AutomaticWebTest(testlib.Automatic
 
 
 if __name__ == '__main__':
-    from logilab.common.testlib import unittest_main
-    unittest_main()
+    import unittest
+    unittest.main()
diff --git a/test/unittest_authenticate.py b/test/unittest_authenticate.py
--- a/test/unittest_authenticate.py
+++ b/test/unittest_authenticate.py
@@ -71,5 +71,5 @@ class SignedRequestTC(SignedRequestBaseT
 
 
 if __name__ == "__main__":
-    from logilab.common.testlib import unittest_main
-    unittest_main()
+    import unittest
+    unittest.main()
diff --git a/test/unittest_security.py b/test/unittest_security.py
--- a/test/unittest_security.py
+++ b/test/unittest_security.py
@@ -136,5 +136,5 @@ class SecurityTC(CubicWebTC):
 
 
 if __name__ == "__main__":
-    from logilab.common.testlib import unittest_main
-    unittest_main()
+    import unittest
+    unittest.main()


More information about the cubicweb-devel mailing list