Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
bfe60761
Commit
bfe60761
authored
5 years ago
by
Marcel Plch
Committed by
Stefan Behnel
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update unicode test to conditionally expect FI/Finnish in pre/post-Py3.8 (GH-2958)
parent
a8a8b70d
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
tests/run/test_unicode.pyx
tests/run/test_unicode.pyx
+5
-2
No files found.
tests/run/test_unicode.pyx
View file @
bfe60761
...
...
@@ -842,8 +842,11 @@ class UnicodeTest(CommonTest,
self
.
assertEqual
(
'h
\
u0130
'
.
capitalize
(),
'H
\
u0069
\
u0307
'
)
exp
=
'
\
u0399
\
u0308
\
u0300
\
u0069
\
u0307
'
self
.
assertEqual
(
'
\
u1fd2
\
u0130
'
.
capitalize
(),
exp
)
# Note: differs between Py<3.8 and later.
#self.assertEqual('finnish'.capitalize(), 'FInnish')
if
sys
.
version_info
<
(
3
,
8
):
self
.
assertEqual
(
'finnish'
.
capitalize
(),
'FInnish'
)
else
:
self
.
assertEqual
(
'finnish'
.
capitalize
(),
'Finnish'
)
self
.
assertEqual
(
'A
\
u0345
\
u03a3
'
.
capitalize
(),
'A
\
u0345
\
u03c2
'
)
def
test_title
(
self
):
...
...
This diff is collapsed.
Click to expand it.
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