cubicweb/test/unittest_req.py
changeset 12572 9850a9b86c92
parent 12508 a8c1ea390400
--- 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])