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
|
|
@ -1427,7 +1427,7 @@ class UnicodeTest(string_tests.CommonTest,
|
|||
|
||||
# non-ascii format, ascii argument: ensure that PyUnicode_FromFormat()
|
||||
# raises an error for a non-ascii format string.
|
||||
self.assertRaisesRegexp(ValueError,
|
||||
self.assertRaisesRegex(ValueError,
|
||||
'^PyUnicode_FromFormatV\(\) expects an ASCII-encoded format '
|
||||
'string, got a non-ASCII byte: 0xe9$',
|
||||
format_unicode, b'unicode\xe9=%s', 'ascii')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue