Closed Bug 548713 Opened 15 years ago Closed 15 years ago

fix _() when context isn't found

Categories

(addons.mozilla.org Graveyard :: Code Quality, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: clouserw, Assigned: clouserw)

Details

diff --git a/lib/l10n/tests/tests.py b/lib/l10n/tests/tests.py index 4da6c12..43a4508 100644 --- a/lib/l10n/tests/tests.py +++ b/lib/l10n/tests/tests.py @@ -44,6 +44,12 @@ def test_ugettext(): @with_setup(setup, teardown) +def test_ugettext_not_found(): + eq_('yo', _('yo')) + eq_('yo', _('yo', 'context')) + + +@with_setup(setup, teardown) def test_ungettext(): # No context a_singular = " one\t\r\n\nlight \n\n!\n"
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.