Zim

Test "loading a plugin" fails in Chinese locale

Bug #517095 reported by Robin Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Fix Released
Undecided
Unassigned

Bug Description

I run zim 0.43 on Fedora 12.

I have compiled translation using "./setup.py build_trans" .

Then a test will fail after running "./test.py":

======================================================================
FAIL: Test loading a plugin
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cheese/Downloads/zim-0.43/tests/plugins.py", line 17, in testGetPlugin
    self.assertEqual(plugin.plugin_info['name'], 'Spell Checker')
AssertionError: u'\u62fc\u5199\u68c0\u67e5\u5668' != 'Spell Checker'

----------------------------------------------------------------------

The above Unicode string u'\u62fc\u5199\u68c0\u67e5\u5668' is just the Chinese translation of 'Spell Checker'.

If I run test.py in en_US.UTF-8 locale, all tests success.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Oops, stupid mistake checking a translatable string in a test. No functional error. Fixed in rev201.

Changed in zim:
status: New → Fix Committed
Changed in zim:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.