mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +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
|
|
@ -226,7 +226,7 @@ class AbstractMemoryTests:
|
|||
self.assertTrue(wr() is None, wr())
|
||||
|
||||
def _check_released(self, m, tp):
|
||||
check = self.assertRaisesRegexp(ValueError, "released")
|
||||
check = self.assertRaisesRegex(ValueError, "released")
|
||||
with check: bytes(m)
|
||||
with check: m.tobytes()
|
||||
with check: m.tolist()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue