MCPcopy Create free account
hub / github.com/numpy/numpy / __enter__

Method __enter__

numpy/core/tests/_locales.py:68–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 locale.setlocale(locale.LC_NUMERIC, locale=self.cur_locale)
67
68 def __enter__(self):
69 if self.tst_locale is None:
70 pytest.skip("No French locale available")
71 locale.setlocale(locale.LC_NUMERIC, locale=self.tst_locale)
72
73 def __exit__(self, type, value, traceback):
74 locale.setlocale(locale.LC_NUMERIC, locale=self.cur_locale)

Callers 1

setup_methodMethod · 0.45

Calls

no outgoing calls

Tested by 1

setup_methodMethod · 0.36