diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-12-01 02:32:32 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-12-01 02:32:32 (GMT) |
commit | ed3a7d2d601ce1e65b0bacf24676440631158ec8 (patch) | |
tree | d8e7df73bc7d9aa2c3cfafd4adb9838dffcea230 /Lib/test/test_unicode.py | |
parent | f10c400b91e44c5c744f4ddc05d90933cba3a56b (diff) | |
download | cpython-ed3a7d2d601ce1e65b0bacf24676440631158ec8.zip cpython-ed3a7d2d601ce1e65b0bacf24676440631158ec8.tar.gz cpython-ed3a7d2d601ce1e65b0bacf24676440631158ec8.tar.bz2 |
#10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex.
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r-- | Lib/test/test_unicode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index ddbeac2..c5a0f80 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -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') |