diff options
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2014-01-11 09:08:37 -0500 |
---|---|---|
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2014-01-11 09:08:37 -0500 |
commit | 5c3f052cf924fd601e6e7a4e3b379e0ea8981db7 (patch) | |
tree | 55a4750c897c7525367ea7e773561ae7d367723f | |
parent | a8f7a941d1e142108d6c249fb99e7706d288d366 (diff) | |
download | pyopenssl-5c3f052cf924fd601e6e7a4e3b379e0ea8981db7.tar.gz |
The maximum of Py_ssize_t is the more relevant value here. Plus there is no maxint on Python 3.
-rw-r--r-- | OpenSSL/test/test_rand.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSSL/test/test_rand.py b/OpenSSL/test/test_rand.py index 7d2559e..84b97c5 100644 --- a/OpenSSL/test/test_rand.py +++ b/OpenSSL/test/test_rand.py @@ -30,7 +30,7 @@ class RandTests(TestCase): :py:obj:`OpenSSL.rand.bytes` raises :py:obj:`MemoryError` if more bytes are requested than will fit in memory. """ - self.assertRaises(MemoryError, rand.bytes, sys.maxint) + self.assertRaises(MemoryError, rand.bytes, sys.maxsize) def test_bytes(self): |