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/test_bytes.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/test_bytes.py')
-rw-r--r-- | Lib/test/test_bytes.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index 4e33a42..d074758 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -523,19 +523,19 @@ class BaseBytesTest(unittest.TestCase): # issue 11828 b = self.type2test(b'hello') x = self.type2test(b'x') - self.assertRaisesRegexp(TypeError, r'\bfind\b', b.find, + self.assertRaisesRegex(TypeError, r'\bfind\b', b.find, x, None, None, None) - self.assertRaisesRegexp(TypeError, r'\brfind\b', b.rfind, + self.assertRaisesRegex(TypeError, r'\brfind\b', b.rfind, x, None, None, None) - self.assertRaisesRegexp(TypeError, r'\bindex\b', b.index, + self.assertRaisesRegex(TypeError, r'\bindex\b', b.index, x, None, None, None) - self.assertRaisesRegexp(TypeError, r'\brindex\b', b.rindex, + self.assertRaisesRegex(TypeError, r'\brindex\b', b.rindex, x, None, None, None) - self.assertRaisesRegexp(TypeError, r'\bcount\b', b.count, + self.assertRaisesRegex(TypeError, r'\bcount\b', b.count, x, None, None, None) - self.assertRaisesRegexp(TypeError, r'\bstartswith\b', b.startswith, + self.assertRaisesRegex(TypeError, r'\bstartswith\b', b.startswith, x, None, None, None) - self.assertRaisesRegexp(TypeError, r'\bendswith\b', b.endswith, + self.assertRaisesRegex(TypeError, r'\bendswith\b', b.endswith, x, None, None, None) |