[fix] exception type has changed 3.26
authorLaurent Peuch <cortex@worlddomination.be>
Thu, 14 Mar 2019 16:09:26 +0100
branch3.26
changeset 12510 7f4411168ed0
parent 12497 c81e29cd8cff
child 12511 e312461d3200
[fix] exception type has changed
cubicweb/test/unittest_rset.py
--- a/cubicweb/test/unittest_rset.py	Thu Mar 14 09:38:20 2019 +0100
+++ b/cubicweb/test/unittest_rset.py	Thu Mar 14 16:09:26 2019 +0100
@@ -571,8 +571,8 @@
         with self.admin_access.web_request() as req:
             rset = req.execute('Any D, COUNT(U) GROUPBY D WHERE U is CWUser, U creation_date D')
             rset.possible_actions(argument='Value')
-            self.assertRaises(AssertionError, rset.possible_actions, argument='OtherValue')
-            self.assertRaises(AssertionError, rset.possible_actions, other_argument='Value')
+            self.assertRaises(ValueError, rset.possible_actions, argument='OtherValue')
+            self.assertRaises(ValueError, rset.possible_actions, other_argument='Value')
 
     def test_count_users_by_date(self):
         with self.admin_access.web_request() as req: