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

Method setUp

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

Source from the content-addressed store, hash-verified

860class FindTestCase(unittest.TestCase):
861
862 def setUp(self):
863 self.env = self.enterContext(os_helper.EnvironmentVarGuard())
864 self.tempdir = self.enterContext(os_helper.temp_cwd())
865
866 for key in ('LANGUAGE', 'LC_ALL', 'LC_MESSAGES', 'LANG'):
867 self.env.unset(key)
868
869 def create_mo_file(self, lang):
870 locale_dir = os.path.join(self.tempdir, "locale")

Callers 8

setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45

Calls 2

enterContextMethod · 0.80
unsetMethod · 0.80

Tested by

no test coverage detected