mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00
Merge with 3.2.
This commit is contained in:
commit
5020e000c5
2 changed files with 14 additions and 14 deletions
|
@ -525,19 +525,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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue