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
da6b1077
Commit
da6b1077
authored
Jan 20, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checkin the test of patch #1400181.
parent
89f35ac1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
Lib/test/test_unicode.py
Lib/test/test_unicode.py
+14
-0
No files found.
Lib/test/test_unicode.py
View file @
da6b1077
...
...
@@ -411,6 +411,20 @@ class UnicodeTest(
return
u'
\
u1234
'
self
.
assertEqual
(
'%s'
%
Wrapper
(),
u'
\
u1234
'
)
def
test_format_float
(
self
):
try
:
import
locale
orig_locale
=
locale
.
setlocale
(
locale
.
LC_ALL
)
locale
.
setlocale
(
locale
.
LC_ALL
,
'de_DE'
)
except
(
ImportError
,
locale
.
Error
):
return
# skip if we can't set locale
try
:
# should not format with a comma, but always with C locale
self
.
assertEqual
(
u'1.0'
,
u'%.1f'
%
1.0
)
finally
:
locale
.
setlocale
(
locale
.
LC_ALL
,
orig_locale
)
def
test_constructor
(
self
):
# unicode(obj) tests (this maps to PyObject_Unicode() at C level)
...
...
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