Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8ca020e1
Commit
8ca020e1
authored
Apr 15, 2016
by
Steven D'Aprano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missing parens.
parent
08fbef04
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/test/test_secrets.py
Lib/test/test_secrets.py
+2
-2
No files found.
Lib/test/test_secrets.py
View file @
8ca020e1
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment