DeprecationWarning: Please use assertRaisesRegex instead.
authorLaurent Peuch <cortex@worlddomination.be>
Fri, 12 Apr 2019 17:25:40 +0200
changeset 12572 9850a9b86c92
parent 12571 eba09a2ac61d
child 12573 9b883489279f
DeprecationWarning: Please use assertRaisesRegex instead.
cubicweb/test/unittest_req.py
--- a/cubicweb/test/unittest_req.py	Thu Apr 11 20:15:09 2019 +0200
+++ b/cubicweb/test/unittest_req.py	Fri Apr 12 17:25:40 2019 +0200
@@ -101,17 +101,17 @@
             users = list(rset.entities())
             self.assertEqual(len(users), 2)
 
-            with self.assertRaisesRegexp(
+            with self.assertRaisesRegex(
                 KeyError, "^'chapeau not in CWUser subject relations'$"
             ):
                 req.find('CWUser', chapeau=u"melon")
 
-            with self.assertRaisesRegexp(
+            with self.assertRaisesRegex(
                 KeyError, "^'buddy not in CWUser object relations'$"
             ):
                 req.find('CWUser', reverse_buddy=users[0])
 
-            with self.assertRaisesRegexp(
+            with self.assertRaisesRegex(
                 NotImplementedError, '^in_group: list of values are not supported$'
             ):
                 req.find('CWUser', in_group=[1, 2])