diff options
author | Eli Bendersky <eliben@gmail.com> | 2011-03-04 04:55:25 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2011-03-04 04:55:25 +0000 |
commit | 42f4dde4c2f19e2105933a810d614e01d3616d36 (patch) | |
tree | 5417ee4da609f52691691c7b92b9058cbb026fcf /Lib/test/test_bytes.py | |
parent | 8950e50bee09ad026aed8de5b412ed9a9d0e1e1c (diff) | |
download | cpython-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.py | 2 |
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) |