MCPcopy Index your code
hub / github.com/python/cpython / setUp

Method setUp

Lib/test/test_gettext.py:460–468  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

458
459class GNUTranslationsClassPluralFormsTestCase(PluralFormsTests, GettextBaseTest):
460 def setUp(self):
461 GettextBaseTest.setUp(self)
462 with open(MOFILE, 'rb') as fp:
463 t = gettext.GNUTranslations(fp)
464
465 self.gettext = t.gettext
466 self.ngettext = t.ngettext
467 self.pgettext = t.pgettext
468 self.npgettext = t.npgettext
469
470 def test_plural_forms_null_translations(self):
471 t = gettext.NullTranslations()

Callers

nothing calls this directly

Calls 2

openFunction · 0.50
setUpMethod · 0.45

Tested by

no test coverage detected