locale-independent unit tests

Bug #79761 reported by Marius Gedminas
28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool
Fix Released
Low
Gediminas Paulauskas

Bug Description

SchoolTool unit tests fail when run in locales other than "C". This is mostly
due to translations, but e.g. doctests for to_locale also make assumptions.

It would be nice to remove this requirement or at least change the test runner
to set the locale. I very strongly prefer the first option, as I would like to
keep the test runner free from SchoolTool-specific details.

Tags: testing

Related branches

Revision history for this message
Marius Gedminas (mgedmin) wrote :

I do not think this issue is relevant any more.

Revision history for this message
Gintautas Miliauskas (gintas) wrote :

This issue is still pertinent. The schoolbell.app.main and schooltool.main
tests still fail on other locales (they do not use Zope 3 i18n).

Changed in schooltool:
assignee: nobody → ignas
Changed in schooltool:
status: In Progress → Confirmed
Changed in schooltool:
importance: Wishlist → Low
Changed in schooltool:
assignee: Ignas Mikalajūnas (ignas) → Justas Sadzevičius (justas-pov)
Revision history for this message
Gediminas Paulauskas (menesis) wrote :

Fixed a 7 year old bug!

Changed in schooltool:
status: Confirmed → Fix Committed
milestone: none → 1.6.0
Revision history for this message
Gediminas Paulauskas (menesis) wrote :
Changed in schooltool:
assignee: Justas Sadzevičius (justas-pov) → Gediminas Paulauskas (menesis)
Changed in schooltool:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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