Test suite: testExceptionHandler fails on non english locale
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Details of the bug:
-------
The test "testExceptionH
> testExceptionHa
>
> =======
> FAIL: testExceptionHa
> -------
> Traceback (most recent call last):
> File "/home/
> self.assertEqua
> AssertionError: u'Il semble que vous ayez trouv\xe9 un bogue' != 'Looks like you found a bug'
> - Il semble que vous ayez trouvé un bogue
> + Looks like you found a bug
Version affected: 0.62
Procedure: run the test suite.
Looks like exception handling is working fine but the error message "Looks like you found a bug" is localized in the exception handler though the test expect it in english.
Changed in zim: | |
status: | New → Confirmed |
tags: | added: 2min |
Full locale issue in test suite:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ndler (tests. errors. TestExceptionHa ndler) ------- ------- ------- ------- ------- ------- ------- ------- ------- ealprr/ projects/ zim/tests/ errors. py", line 127, in testExceptionHa ndler assertEqual( records[ 0].getMessage( ), 'Looks like you found a bug')
FAIL: testExceptionHa
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: u'Il semble que vous ayez trouv\xe9 un bogue' != 'Looks like you found a bug'
- Il semble que vous ayez trouvé un bogue
+ Looks like you found a bug
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ndlerWithGtk (tests. errors. TestExceptionHa ndler) ------- ------- ------- ------- ------- ------- ------- ------- ------- ealprr/ projects/ zim/tests/ errors. py", line 88, in testExceptionHa ndlerWithGtk testExceptionHa ndler() ealprr/ projects/ zim/tests/ errors. py", line 127, in testExceptionHa ndler assertEqual( records[ 0].getMessage( ), 'Looks like you found a bug')
FAIL: testExceptionHa
-------
Traceback (most recent call last):
File "/home/
self.
File "/home/
self.
AssertionError: u'Il semble que vous ayez trouv\xe9 un bogue' != 'Looks like you found a bug'
- Il semble que vous ayez trouvé un bogue
+ Looks like you found a bug
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= objectmanager. TestObjectManag er) ------- ------- ------- ------- ------- ------- ------- ------- ------- ealprr/ projects/ zim/tests/ objectmanager. py", line 51, in runTest
FAIL: runTest (tests.
-------
Traceback (most recent call last):
File "/home/
('sourceview', 'Source View', True, SourceViewPlugin, None)
AssertionError: Tuples differ: (u'sourceview', u'Visualiseur ... != ('sourceview', 'Source View', ...
First differing element 1:
Visualiseur de source
Source View
- (u'sourceview',
? -
+ ('sourceview', sourceview. SourceViewPlugi n'>,
- u'Visualiseur de source',
+ 'Source View',
True,
<class 'zim.plugins.
None)
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= plugins. TestPluginClass es) ------- ------- ------- ------- ------- ------- ------- ------- ------- ealprr/ projects/ zim/tests/ plugins. py", line 72, in runTest assertIn( label, manual, 'Preference "%s" for %s plugin not documented in manual page' % (label, name))
FAIL: runTest (tests.
-------
Traceback (most recent call last):
File "/home/
self.
AssertionError: Preference "Icône de notification classique" for trayicon plugin not documented in manual page