summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bytes.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-04-16 22:51:37 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-04-16 22:51:37 (GMT)
commit8380dd5aa42372929fe962ebdc3c180d929e497a (patch)
tree8d26a672eb08d5069ca549fb265d2e012363b657 /Lib/test/test_bytes.py
parent4c04583e790c424b9360774fe7055576e925b534 (diff)
downloadcpython-8380dd5aa42372929fe962ebdc3c180d929e497a.zip
cpython-8380dd5aa42372929fe962ebdc3c180d929e497a.tar.gz
cpython-8380dd5aa42372929fe962ebdc3c180d929e497a.tar.bz2
Merged revisions 80126 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80126 | benjamin.peterson | 2010-04-16 17:35:38 -0500 (Fri, 16 Apr 2010) | 1 line have a clear error when passing something > sys.maxsize to bytearray ........
Diffstat (limited to 'Lib/test/test_bytes.py')
-rw-r--r--Lib/test/test_bytes.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py
index c27cc3a..06ff4c9 100644
--- a/Lib/test/test_bytes.py
+++ b/Lib/test/test_bytes.py
@@ -75,6 +75,7 @@ class BaseBytesTest(unittest.TestCase):
self.assertEqual(self.type2test('0', 'ascii'), b'0')
self.assertEqual(self.type2test(b'0'), b'0')
+ self.assertRaises(OverflowError, self.type2test, sys.maxsize + 1)
def test_constructor_type_errors(self):
self.assertRaises(TypeError, self.type2test, 0.0)