| commit | fd8ff98b80fca7325c4465bd9dd90460179eb3c9 | [log] [tgz] |
|---|---|---|
| author | Benjamin Peterson <benjamin@python.org> | Tue Nov 23 17:49:40 2010 -0600 |
| committer | Benjamin Peterson <benjamin@python.org> | Tue Nov 23 17:49:40 2010 -0600 |
| tree | ebb2af7d34a6b787362eb7329dc838f0eb89ab2f | |
| parent | 8f8110753efdb61c42f272c16e9ec30634e7f96f [diff] |
add another MAXSIZE test
diff --git a/test_six.py b/test_six.py index fa88b18..cc0cfdc 100644 --- a/test_six.py +++ b/test_six.py
@@ -53,6 +53,12 @@ def test_MAXSIZE(): + try: + # This shouldn't raise an overflow error. + six.MAXSIZE.__index__() + except AttributeError: + # Before Python 2.6. + pass py.test.raises(OverflowError, operator.mul, [None], six.MAXSIZE + 1)