mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex.
This commit is contained in:
parent
f10c400b91
commit
ed3a7d2d60
21 changed files with 203 additions and 186 deletions
|
@ -192,8 +192,8 @@ class TestABC(unittest.TestCase):
|
|||
def test_register_non_class(self):
|
||||
class A(metaclass=abc.ABCMeta):
|
||||
pass
|
||||
self.assertRaisesRegexp(TypeError, "Can only register classes",
|
||||
A.register, 4)
|
||||
self.assertRaisesRegex(TypeError, "Can only register classes",
|
||||
A.register, 4)
|
||||
|
||||
def test_registration_transitiveness(self):
|
||||
class A(metaclass=abc.ABCMeta):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue