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
f2bb8898
Commit
f2bb8898
authored
Mar 12, 2012
by
Eric V. Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge heads.
parents
56bac7b9
97722c41
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
Lib/test/test_unicode.py
Lib/test/test_unicode.py
+9
-6
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/test/test_unicode.py
View file @
f2bb8898
...
@@ -957,12 +957,15 @@ class UnicodeTest(string_tests.CommonTest,
...
@@ -957,12 +957,15 @@ class UnicodeTest(string_tests.CommonTest,
self
.
assertEqual
(
'{foo._x}'
.
format_map
({
'foo'
:
C
(
20
)}),
'20'
)
self
.
assertEqual
(
'{foo._x}'
.
format_map
({
'foo'
:
C
(
20
)}),
'20'
)
# test various errors
# test various errors
self
.
assertRaises
(
TypeError
,
'{'
.
format_map
)
self
.
assertRaises
(
TypeError
,
''
.
format_map
)
self
.
assertRaises
(
TypeError
,
'}'
.
format_map
)
self
.
assertRaises
(
TypeError
,
'a'
.
format_map
)
self
.
assertRaises
(
TypeError
,
'a{'
.
format_map
)
self
.
assertRaises
(
TypeError
,
'a}'
.
format_map
)
self
.
assertRaises
(
ValueError
,
'{'
.
format_map
,
{})
self
.
assertRaises
(
TypeError
,
'{a'
.
format_map
)
self
.
assertRaises
(
ValueError
,
'}'
.
format_map
,
{})
self
.
assertRaises
(
TypeError
,
'}a'
.
format_map
)
self
.
assertRaises
(
ValueError
,
'a{'
.
format_map
,
{})
self
.
assertRaises
(
ValueError
,
'a}'
.
format_map
,
{})
self
.
assertRaises
(
ValueError
,
'{a'
.
format_map
,
{})
self
.
assertRaises
(
ValueError
,
'}a'
.
format_map
,
{})
# issue #12579: can't supply positional params to format_map
# issue #12579: can't supply positional params to format_map
self
.
assertRaises
(
ValueError
,
'{}'
.
format_map
,
{
'a'
:
2
})
self
.
assertRaises
(
ValueError
,
'{}'
.
format_map
,
{
'a'
:
2
})
...
...
Misc/ACKS
View file @
f2bb8898
...
@@ -602,6 +602,7 @@ Christopher Tur Lesniewski-Laas
...
@@ -602,6 +602,7 @@ Christopher Tur Lesniewski-Laas
Alain Leufroy
Alain Leufroy
Mark Levinson
Mark Levinson
William Lewis
William Lewis
Akira Li
Xuanji Li
Xuanji Li
Robert van Liere
Robert van Liere
Ross Light
Ross Light
...
...
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