summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2011-03-04 04:55:25 (GMT)
committerEli Bendersky <eliben@gmail.com>2011-03-04 04:55:25 (GMT)
commit1bc4f193d8419405e9b34f5e8dcbeb2ee5a15fc9 (patch)
tree72d14d3dbe86cf5570d4872ce1b8333fe82e04dc /Lib
parent424298a155b5cc652ce1e539a1fedb658fba9cd1 (diff)
downloadcpython-1bc4f193d8419405e9b34f5e8dcbeb2ee5a15fc9.zip
cpython-1bc4f193d8419405e9b34f5e8dcbeb2ee5a15fc9.tar.gz
cpython-1bc4f193d8419405e9b34f5e8dcbeb2ee5a15fc9.tar.bz2
Issue #11386: Fixed the exception thrown by bytearray.pop() for empty bytearrays
Diffstat (limited to 'Lib')
-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 a6f1826..0b70c3a 100644
--- a/Lib/test/test_bytes.py
+++ b/Lib/test/test_bytes.py
@@ -790,7 +790,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)