diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-09-06 10:19:23 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-09-06 10:19:23 +0000 |
commit | 09443e6ffc7f45c819fcfbffa213b39f9131a6dc (patch) | |
tree | 1a7c09f2e65e196460cc47c1848252c9ffabb677 /Lib/test/test_bytes.py | |
parent | 6b1e8cb9d21acb77b26bd05ad7c1c10343999ac3 (diff) | |
download | cpython-09443e6ffc7f45c819fcfbffa213b39f9131a6dc.tar.gz |
Merged revisions 74673 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74673 | mark.dickinson | 2009-09-06 11:03:31 +0100 (Sun, 06 Sep 2009) | 3 lines
Issue #6846: bytearray.pop was returning ints in the range [-128, 128)
instead of [0, 256). Thanks Hagen Fürstenau for the report and fix.
........
Diffstat (limited to 'Lib/test/test_bytes.py')
-rw-r--r-- | Lib/test/test_bytes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index caea9094b1..dd01b936b2 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -716,6 +716,8 @@ class ByteArrayTest(BaseBytesTest): self.assertEqual(b.pop(-2), ord('r')) self.assertRaises(IndexError, lambda: b.pop(10)) self.assertRaises(OverflowError, lambda: bytearray().pop()) + # test for issue #6846 + self.assertEqual(bytearray(b'\xff').pop(), 0xff) def test_nosort(self): self.assertRaises(AttributeError, lambda: bytearray().sort()) |