Zim

Test suite: testExceptionHandler fails on non english locale

Bug #1407658 reported by TheLambdaMancer
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Undecided
Unassigned

Bug Description

Details of the bug:
---------------------

 The test "testExceptionHandler" of the test suite fails on non english locale:

> testExceptionHandler (tests.errors.TestExceptionHandler) ... FAIL
>
> ======================================================================
> FAIL: testExceptionHandler (tests.errors.TestExceptionHandler)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/tof/Téléchargements/zim/zim-0.62/tests/errors.py", line 127, in testExceptionHandler
> self.assertEqual(records[0].getMessage(), 'Looks like you found a bug')
> 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.

Tags: 2min
Revision history for this message
ealprr (ealprr) wrote :

Full locale issue in test suite:

======================================================================
FAIL: testExceptionHandler (tests.errors.TestExceptionHandler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ealprr/projects/zim/tests/errors.py", line 127, in testExceptionHandler
    self.assertEqual(records[0].getMessage(), 'Looks like you found a bug')
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

======================================================================
FAIL: testExceptionHandlerWithGtk (tests.errors.TestExceptionHandler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ealprr/projects/zim/tests/errors.py", line 88, in testExceptionHandlerWithGtk
    self.testExceptionHandler()
  File "/home/ealprr/projects/zim/tests/errors.py", line 127, in testExceptionHandler
    self.assertEqual(records[0].getMessage(), 'Looks like you found a bug')
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

======================================================================
FAIL: runTest (tests.objectmanager.TestObjectManager)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ealprr/projects/zim/tests/objectmanager.py", line 51, in runTest
    ('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',
- u'Visualiseur de source',
+ 'Source View',
   True,
   <class 'zim.plugins.sourceview.SourceViewPlugin'>,
   None)

======================================================================
FAIL: runTest (tests.plugins.TestPluginClasses)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ealprr/projects/zim/tests/plugins.py", line 72, in runTest
    self.assertIn(label, manual, 'Preference "%s" for %s plugin not documented in manual page' % (label, name))
AssertionError: Preference "Icône de notification classique" for trayicon plugin not documented in manual page

Changed in zim:
status: New → Confirmed
tags: added: 2min
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.