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

Method setUp

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

Source from the content-addressed store, hash-verified

667
668class UnicodeTranslationsTest(GettextBaseTest):
669 def setUp(self):
670 GettextBaseTest.setUp(self)
671 with open(UMOFILE, 'rb') as fp:
672 self.t = gettext.GNUTranslations(fp)
673 self._ = self.t.gettext
674 self.pgettext = self.t.pgettext
675
676 def test_unicode_msgid(self):
677 self.assertIsInstance(self._(''), str)

Callers

nothing calls this directly

Calls 2

openFunction · 0.50
setUpMethod · 0.45

Tested by

no test coverage detected