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
Xavier Thompson
cython
Commits
93bf3a7d
Commit
93bf3a7d
authored
Apr 30, 2019
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable a (not-really-for-Cython) test that fails due to Unicode fixes in Py3.8.
parent
67d97208
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
tests/run/test_unicode.pyx
tests/run/test_unicode.pyx
+2
-1
tests/run/test_unicode_string_tests.pxi
tests/run/test_unicode_string_tests.pxi
+3
-2
No files found.
tests/run/test_unicode.pyx
View file @
93bf3a7d
...
@@ -842,7 +842,8 @@ class UnicodeTest(CommonTest,
...
@@ -842,7 +842,8 @@ class UnicodeTest(CommonTest,
self
.
assertEqual
(
'h
\
u0130
'
.
capitalize
(),
'H
\
u0069
\
u0307
'
)
self
.
assertEqual
(
'h
\
u0130
'
.
capitalize
(),
'H
\
u0069
\
u0307
'
)
exp
=
'
\
u0399
\
u0308
\
u0300
\
u0069
\
u0307
'
exp
=
'
\
u0399
\
u0308
\
u0300
\
u0069
\
u0307
'
self
.
assertEqual
(
'
\
u1fd2
\
u0130
'
.
capitalize
(),
exp
)
self
.
assertEqual
(
'
\
u1fd2
\
u0130
'
.
capitalize
(),
exp
)
self
.
assertEqual
(
'finnish'
.
capitalize
(),
'FInnish'
)
# Note: differs between Py<3.8 and later.
#self.assertEqual('finnish'.capitalize(), 'FInnish')
self
.
assertEqual
(
'A
\
u0345
\
u03a3
'
.
capitalize
(),
'A
\
u0345
\
u03c2
'
)
self
.
assertEqual
(
'A
\
u0345
\
u03a3
'
.
capitalize
(),
'A
\
u0345
\
u03c2
'
)
def
test_title
(
self
):
def
test_title
(
self
):
...
...
tests/run/test_unicode_string_tests.pxi
View file @
93bf3a7d
...
@@ -977,8 +977,9 @@ class CommonTest(BaseTest):
...
@@ -977,8 +977,9 @@ class CommonTest(BaseTest):
def
test_capitalize_nonascii
(
self
):
def
test_capitalize_nonascii
(
self
):
# check that titlecased chars are lowered correctly
# check that titlecased chars are lowered correctly
# \u1ffc is the titlecased char
# \u1ffc is the titlecased char
self
.
checkequal
(
'
\
u03a9
\
u0399
\
u1ff3
\
u1ff3
\
u1ff3
'
,
# Note: differs between Py<3.8 and later.
'
\
u1ff3
\
u1ff3
\
u1ffc
\
u1ffc
'
,
'capitalize'
)
#self.checkequal('\u03a9\u0399\u1ff3\u1ff3\u1ff3',
# '\u1ff3\u1ff3\u1ffc\u1ffc', 'capitalize')
# check with cased non-letter chars
# check with cased non-letter chars
self
.
checkequal
(
'
\
u24c5
\
u24e8
\
u24e3
\
u24d7
\
u24de
\
u24dd
'
,
self
.
checkequal
(
'
\
u24c5
\
u24e8
\
u24e3
\
u24d7
\
u24de
\
u24dd
'
,
'
\
u24c5
\
u24ce
\
u24c9
\
u24bd
\
u24c4
\
u24c3
'
,
'capitalize'
)
'
\
u24c5
\
u24ce
\
u24c9
\
u24bd
\
u24c4
\
u24c3
'
,
'capitalize'
)
...
...
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