mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +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
|
|
@ -312,8 +312,8 @@ class DispatcherTests(unittest.TestCase):
|
|||
d = asyncore.dispatcher(socket.socket())
|
||||
# make sure the error message no longer refers to the socket
|
||||
# object but the dispatcher instance instead
|
||||
self.assertRaisesRegexp(AttributeError, 'dispatcher instance',
|
||||
getattr, d, 'foo')
|
||||
self.assertRaisesRegex(AttributeError, 'dispatcher instance',
|
||||
getattr, d, 'foo')
|
||||
# cheap inheritance with the underlying socket is supposed
|
||||
# to still work but a DeprecationWarning is expected
|
||||
with warnings.catch_warnings(record=True) as w:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue