summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bytes.py
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2011-03-04 06:14:56 (GMT)
committerEli Bendersky <eliben@gmail.com>2011-03-04 06:14:56 (GMT)
commit680e6eb54f01610f44843ed3f0a1ea8dd69b9603 (patch)
tree810d8884ba62c1246d27d47a7020f3ec5ab39c7b /Lib/test/test_bytes.py
parent1a337906824e41f7ea7ce49bc62c23f5e835862e (diff)
downloadcpython-680e6eb54f01610f44843ed3f0a1ea8dd69b9603.zip
cpython-680e6eb54f01610f44843ed3f0a1ea8dd69b9603.tar.gz
cpython-680e6eb54f01610f44843ed3f0a1ea8dd69b9603.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 6b5ef36..2026cdb 100644
--- a/Lib/test/test_bytes.py
+++ b/Lib/test/test_bytes.py
@@ -695,7 +695,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)