mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Fix core dump in an endcase of b.strip() that I missed.
This commit is contained in:
parent
2fb5ac745b
commit
eb29e9ab2b
2 changed files with 5 additions and 1 deletions
|
@ -653,6 +653,7 @@ class BytesTest(unittest.TestCase):
|
|||
self.assertEqual(b.strip(b'pi'), b'mississ')
|
||||
self.assertEqual(b.strip(b'im'), b'ssissipp')
|
||||
self.assertEqual(b.strip(b'pim'), b'ssiss')
|
||||
self.assertEqual(b.strip(b), b'')
|
||||
|
||||
def test_lstrip(self):
|
||||
b = b'mississippi'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue