Edgewall Software

Opened 9 years ago

Last modified 9 years ago

#12020 closed defect

Test failures on OSX due to incorrect unicode normalization — at Initial Version

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone: 1.0.6
Component: plugin/git Version:
Severity: normal Keywords: unit tests unicode
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Issue seems to be explained in SO:9758014/121694. The test failures are:

======================================================================
FAIL: test_unicode_branches (tracopt.versioncontrol.git.tests.PyGIT.UnicodeNameTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/tracopt/versioncontrol/git/tests/PyGIT.py", line 347, in test_unicode_branches
    self.assertEqual(u'tickét10980', branches[1][0])
AssertionError: u'tick\xe9t10980' != u'ticke\u0301t10980'
- tick\xe9t10980
?     ^
+ ticke\u0301t10980
?     ^^


======================================================================
FAIL: test_unicode_tags (tracopt.versioncontrol.git.tests.PyGIT.UnicodeNameTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/tracopt/versioncontrol/git/tests/PyGIT.py", line 364, in test_unicode_tags
    self.assertEqual([u'täg-t10980', 'v0.42.1'], tags)
AssertionError: Lists differ: [u't\xe4g-t10980', 'v0.42.1'] != [u'ta\u0308g-t10980', u'v0.42....

First differing element 0:
t\xe4g-t10980
ta\u0308g-t10980

- [u't\xe4g-t10980', 'v0.42.1']
?      ^^^

+ [u'ta\u0308g-t10980', u'v0.42.1']
?     + ^^^^^           +

Change History (0)

Note: See TracTickets for help on using tickets.