diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-04-20 18:56:21 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-04-20 18:56:21 (GMT) |
commit | af92842bf988ec3b65fad4b2ab2f0f84c7763c94 (patch) | |
tree | d6060737e0487b4d09cd2a38d49d1cad3b626d55 /Lib/test/string_tests.py | |
parent | 861d27f4cff8f2a82ebbb20090b49e754f1135c1 (diff) | |
download | cpython-af92842bf988ec3b65fad4b2ab2f0f84c7763c94.zip cpython-af92842bf988ec3b65fad4b2ab2f0f84c7763c94.tar.gz cpython-af92842bf988ec3b65fad4b2ab2f0f84c7763c94.tar.bz2 |
Use non-deprecated method name.
Diffstat (limited to 'Lib/test/string_tests.py')
-rw-r--r-- | Lib/test/string_tests.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 24a4a57..fca38c3 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -1225,19 +1225,19 @@ class MixinStrUnicodeUserStringTest: # issue 11828 s = 'hello' x = 'x' - self.assertRaisesRegexp(TypeError, r'^find\(', s.find, + self.assertRaisesRegex(TypeError, r'^find\(', s.find, x, None, None, None) - self.assertRaisesRegexp(TypeError, r'^rfind\(', s.rfind, + self.assertRaisesRegex(TypeError, r'^rfind\(', s.rfind, x, None, None, None) - self.assertRaisesRegexp(TypeError, r'^index\(', s.index, + self.assertRaisesRegex(TypeError, r'^index\(', s.index, x, None, None, None) - self.assertRaisesRegexp(TypeError, r'^rindex\(', s.rindex, + self.assertRaisesRegex(TypeError, r'^rindex\(', s.rindex, x, None, None, None) - self.assertRaisesRegexp(TypeError, r'^count\(', s.count, + self.assertRaisesRegex(TypeError, r'^count\(', s.count, x, None, None, None) - self.assertRaisesRegexp(TypeError, r'^startswith\(', s.startswith, + self.assertRaisesRegex(TypeError, r'^startswith\(', s.startswith, x, None, None, None) - self.assertRaisesRegexp(TypeError, r'^endswith\(', s.endswith, + self.assertRaisesRegex(TypeError, r'^endswith\(', s.endswith, x, None, None, None) |