summaryrefslogtreecommitdiff
path: root/Lib/test/test_bytes.py
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2011-03-04 05:10:57 +0000
committerEli Bendersky <eliben@gmail.com>2011-03-04 05:10:57 +0000
commita9a141b4aa3306686385f4d32f2efb31184d68bf (patch)
tree71b8e5711cc50b4a7f02b29a1d9728e466b22a4e /Lib/test/test_bytes.py
parenta1729fd624a168cfd26babfecbb2efef996d8152 (diff)
downloadcpython-a9a141b4aa3306686385f4d32f2efb31184d68bf.tar.gz
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 e5c7ccd4ff..9be1008c36 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)