summaryrefslogtreecommitdiff
path: root/Lib/test/test_bytes.py
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2011-03-04 04:55:25 +0000
committerEli Bendersky <eliben@gmail.com>2011-03-04 04:55:25 +0000
commit42f4dde4c2f19e2105933a810d614e01d3616d36 (patch)
tree5417ee4da609f52691691c7b92b9058cbb026fcf /Lib/test/test_bytes.py
parent8950e50bee09ad026aed8de5b412ed9a9d0e1e1c (diff)
downloadcpython-42f4dde4c2f19e2105933a810d614e01d3616d36.tar.gz
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 a6f1826a0b..0b70c3a35c 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)