summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_secrets.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_secrets.py')
-rw-r--r--Lib/test/test_secrets.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_secrets.py b/Lib/test/test_secrets.py
index 4c65cf0..d31d07e 100644
--- a/Lib/test/test_secrets.py
+++ b/Lib/test/test_secrets.py
@@ -70,6 +70,7 @@ class Random_Tests(unittest.TestCase):
for i in range(2, 10):
self.assertIn(secrets.randbelow(i), range(i))
self.assertRaises(ValueError, secrets.randbelow, 0)
+ self.assertRaises(ValueError, secrets.randbelow, -1)
class Token_Tests(unittest.TestCase):