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
478fe106
Commit
478fe106
authored
Feb 23, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#17217: merge with 3.3.
parents
31999be8
b9aea32e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_format.py
Lib/test/test_format.py
+3
-3
No files found.
Lib/test/test_format.py
View file @
478fe106
...
...
@@ -14,10 +14,10 @@ maxsize = support.MAX_Py_ssize_t
def
testformat
(
formatstr
,
args
,
output
=
None
,
limit
=
None
,
overflowok
=
False
):
if
verbose
:
if
output
:
print
(
"
%r %% %r =? %r ..."
%
\
(
formatstr
,
args
,
output
),
end
=
' '
)
print
(
"
{!a} % {!a} =? {!a} ..."
.
format
(
formatstr
,
args
,
output
),
end
=
' '
)
else
:
print
(
"
%r %% %r works? ..."
%
(
formatstr
,
args
),
end
=
' '
)
print
(
"
{!a} % {!a} works? ..."
.
format
(
formatstr
,
args
),
end
=
' '
)
try
:
result
=
formatstr
%
args
except
OverflowError
:
...
...
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