summaryrefslogtreecommitdiff
path: root/lib/Crypto
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Crypto')
-rw-r--r--lib/Crypto/SelfTest/Util/test_number.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Crypto/SelfTest/Util/test_number.py b/lib/Crypto/SelfTest/Util/test_number.py
index 7a74e3a..f34233f 100644
--- a/lib/Crypto/SelfTest/Util/test_number.py
+++ b/lib/Crypto/SelfTest/Util/test_number.py
@@ -252,6 +252,7 @@ class MiscTests(unittest.TestCase):
def test_isPrime(self):
"""Util.number.isPrime"""
+ self.assertEqual(number.isPrime(1), False) # Regression test: isPrime(1) caused some versions of PyCrypto to crash.
self.assertEqual(number.isPrime(2), True)
self.assertEqual(number.isPrime(3), True)
self.assertEqual(number.isPrime(4), False)