summaryrefslogtreecommitdiff
path: root/Lib/test/test_bytes.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-08 21:55:33 +0000
committerGuido van Rossum <guido@python.org>2007-08-08 21:55:33 +0000
commiteb29e9ab2b037db198591a9cacb5993385c7f83d (patch)
tree0748abafc847fcd708af120f2834e2737aceabe9 /Lib/test/test_bytes.py
parent2fb5ac745bf2edd03261ca8144eb73a1f6e54af3 (diff)
downloadcpython-git-eb29e9ab2b037db198591a9cacb5993385c7f83d.tar.gz
Fix core dump in an endcase of b.strip() that I missed.
Diffstat (limited to 'Lib/test/test_bytes.py')
-rw-r--r--Lib/test/test_bytes.py1
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'