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
600b7116
Commit
600b7116
authored
Feb 21, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#17255: merge with 3.2.
parents
ed891c15
0f4377c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
Lib/test/test_builtin.py
Lib/test/test_builtin.py
+2
-0
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/test/test_builtin.py
View file @
600b7116
...
...
@@ -180,6 +180,7 @@ class BuiltinTest(unittest.TestCase):
self
.
assertRaises
(
TypeError
,
all
)
# No args
self
.
assertRaises
(
TypeError
,
all
,
[
2
,
4
,
6
],
[])
# Too many args
self
.
assertEqual
(
all
([]),
True
)
# Empty iterator
self
.
assertEqual
(
all
([
0
,
TestFailingBool
()]),
False
)
# Short-circuit
S
=
[
50
,
60
]
self
.
assertEqual
(
all
(
x
>
42
for
x
in
S
),
True
)
S
=
[
50
,
40
,
60
]
...
...
@@ -194,6 +195,7 @@ class BuiltinTest(unittest.TestCase):
self
.
assertRaises
(
TypeError
,
any
)
# No args
self
.
assertRaises
(
TypeError
,
any
,
[
2
,
4
,
6
],
[])
# Too many args
self
.
assertEqual
(
any
([]),
False
)
# Empty iterator
self
.
assertEqual
(
any
([
1
,
TestFailingBool
()]),
True
)
# Short-circuit
S
=
[
40
,
60
,
30
]
self
.
assertEqual
(
any
(
x
>
42
for
x
in
S
),
True
)
S
=
[
10
,
20
,
30
]
...
...
Misc/ACKS
View file @
600b7116
...
...
@@ -423,6 +423,7 @@ Johannes Gijsbers
Michael Gilfix
Yannick Gingras
Matt Giuca
Wim Glenn
Michael Goderbauer
Christoph Gohlke
Tim Golden
...
...
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