diff options
author | Guido van Rossum <guido@python.org> | 2007-08-08 21:55:33 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-08 21:55:33 +0000 |
commit | eb29e9ab2b037db198591a9cacb5993385c7f83d (patch) | |
tree | 0748abafc847fcd708af120f2834e2737aceabe9 /Lib | |
parent | 2fb5ac745bf2edd03261ca8144eb73a1f6e54af3 (diff) | |
download | cpython-git-eb29e9ab2b037db198591a9cacb5993385c7f83d.tar.gz |
Fix core dump in an endcase of b.strip() that I missed.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_bytes.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index 094c56cb3c..654cb863f9 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -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' |