diff options
author | Steven D'Aprano <steve@pearwood.info> | 2016-04-15 00:06:18 (GMT) |
---|---|---|
committer | Steven D'Aprano <steve@pearwood.info> | 2016-04-15 00:06:18 (GMT) |
commit | 8ca020e1cc2590472ba83611727ae20d9f34bfe5 (patch) | |
tree | a7f078dfb4bb0a749d510f2c3acf29860779ed94 | |
parent | 08fbef040a02d684c1c8466b98f8d68d38c3de47 (diff) | |
download | cpython-8ca020e1cc2590472ba83611727ae20d9f34bfe5.zip cpython-8ca020e1cc2590472ba83611727ae20d9f34bfe5.tar.gz cpython-8ca020e1cc2590472ba83611727ae20d9f34bfe5.tar.bz2 |
Fix missing parens.
-rw-r--r-- | Lib/test/test_secrets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_secrets.py b/Lib/test/test_secrets.py index afcba84..4c65cf0 100644 --- a/Lib/test/test_secrets.py +++ b/Lib/test/test_secrets.py @@ -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)) |