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
d265a284
Commit
d265a284
authored
Apr 24, 2014
by
Zachary Ware
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #21346: Fix typos in test_itertools. Patch by Brian Kearns.
parent
24286878
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/test/test_itertools.py
Lib/test/test_itertools.py
+2
-2
No files found.
Lib/test/test_itertools.py
View file @
d265a284
...
...
@@ -274,7 +274,7 @@ class TestBasicOps(unittest.TestCase):
self
.
assertEqual
(
result
,
list
(
permutations
(
values
,
None
)))
# test r as None
self
.
assertEqual
(
result
,
list
(
permutations
(
values
)))
# test default r
@
test_support
.
impl_detail
(
"tuple re
suse is CPython specific
"
)
@
test_support
.
impl_detail
(
"tuple re
use is specific to CPython
"
)
def
test_permutations_tuple_reuse
(
self
):
self
.
assertEqual
(
len
(
set
(
map
(
id
,
permutations
(
'abcde'
,
3
)))),
1
)
self
.
assertNotEqual
(
len
(
set
(
map
(
id
,
list
(
permutations
(
'abcde'
,
3
))))),
1
)
...
...
@@ -536,7 +536,7 @@ class TestBasicOps(unittest.TestCase):
zip
(
'abc'
,
'def'
))
@
test_support
.
impl_detail
(
"tuple reuse is specific to CPython"
)
def
test_izip_tuple_re
s
use
(
self
):
def
test_izip_tuple_reuse
(
self
):
ids
=
map
(
id
,
izip
(
'abc'
,
'def'
))
self
.
assertEqual
(
min
(
ids
),
max
(
ids
))
ids
=
map
(
id
,
list
(
izip
(
'abc'
,
'def'
)))
...
...
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