Commit bfe60761 authored by Marcel Plch's avatar Marcel Plch Committed by Stefan Behnel

Update unicode test to conditionally expect FI/Finnish in pre/post-Py3.8 (GH-2958)

parent a8a8b70d
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment