summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bytes.py
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2011-03-04 05:10:57 (GMT)
committerEli Bendersky <eliben@gmail.com>2011-03-04 05:10:57 (GMT)
commite0c8635d89f8d63808b3be66cccc36d7a7d3bdab (patch)
treea1d0b90f2e8a4c4a854f60ee2ac84e3d210bf77e /Lib/test/test_bytes.py
parent752b950e6b4d1f6f5d94d99050f30a128e44a1d6 (diff)
downloadcpython-e0c8635d89f8d63808b3be66cccc36d7a7d3bdab.zip
cpython-e0c8635d89f8d63808b3be66cccc36d7a7d3bdab.tar.gz
cpython-e0c8635d89f8d63808b3be66cccc36d7a7d3bdab.tar.bz2
Merged revisions 88735 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88735 | eli.bendersky | 2011-03-04 06:55:25 +0200 (Fri, 04 Mar 2011) | 2 lines Issue #11386: Fixed the exception thrown by bytearray.pop() for empty bytearrays ........
Diffstat (limited to 'Lib/test/test_bytes.py')
-rw-r--r--Lib/test/test_bytes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py
index e5c7ccd..9be1008 100644
--- a/Lib/test/test_bytes.py
+++ b/Lib/test/test_bytes.py
@@ -755,7 +755,7 @@ class ByteArrayTest(BaseBytesTest):
self.assertEqual(b.pop(0), ord('w'))
self.assertEqual(b.pop(-2), ord('r'))
self.assertRaises(IndexError, lambda: b.pop(10))
- self.assertRaises(OverflowError, lambda: bytearray().pop())
+ self.assertRaises(IndexError, lambda: bytearray().pop())
# test for issue #6846
self.assertEqual(bytearray(b'\xff').pop(), 0xff)