]> granicus.if.org Git - python/commitdiff
Fix missing parens.
authorSteven D'Aprano <steve@pearwood.info>
Fri, 15 Apr 2016 00:06:18 +0000 (10:06 +1000)
committerSteven D'Aprano <steve@pearwood.info>
Fri, 15 Apr 2016 00:06:18 +0000 (10:06 +1000)
Lib/test/test_secrets.py

index afcba84812649545e57aa98e1d3416b5b847b04c..4c65cf00cd3e2952f29b75ce23673da667e74161 100644 (file)
@@ -105,7 +105,7 @@ class Token_Tests(unittest.TestCase):
         for n in (1, 12, 25, 90):
             with self.subTest(n=n):
                 s = secrets.token_hex(n)
-                self.assertIsInstance(s, str))
+                self.assertIsInstance(s, str)
                 self.assertEqual(len(s), 2*n)
                 self.assertTrue(all(c in string.hexdigits for c in s))
 
@@ -115,7 +115,7 @@ class Token_Tests(unittest.TestCase):
         for n in (1, 11, 28, 76):
             with self.subTest(n=n):
                 s = secrets.token_urlsafe(n)
-                self.assertIsInstance(s, str))
+                self.assertIsInstance(s, str)
                 self.assertTrue(all(c in legal for c in s))