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

Method setUp

Lib/test/test_strftime.py:70–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

68 self.now = now
69
70 def setUp(self):
71 from locale import setlocale, LC_TIME
72 saved_locale = setlocale(LC_TIME)
73 setlocale(LC_TIME, 'C')
74 self.addCleanup(setlocale, LC_TIME, saved_locale)
75
76 def test_strftime(self):
77 now = time.time()

Callers

nothing calls this directly

Calls 2

setlocaleFunction · 0.90
addCleanupMethod · 0.80

Tested by

no test coverage detected