summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bytes.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-08 21:55:33 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-08 21:55:33 (GMT)
commiteb29e9ab2b037db198591a9cacb5993385c7f83d (patch)
tree0748abafc847fcd708af120f2834e2737aceabe9 /Lib/test/test_bytes.py
parent2fb5ac745bf2edd03261ca8144eb73a1f6e54af3 (diff)
downloadcpython-eb29e9ab2b037db198591a9cacb5993385c7f83d.zip
cpython-eb29e9ab2b037db198591a9cacb5993385c7f83d.tar.gz
cpython-eb29e9ab2b037db198591a9cacb5993385c7f83d.tar.bz2
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 094c56c..654cb86 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'