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

Method test_strftime

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

Source from the content-addressed store, hash-verified

74 self.addCleanup(setlocale, LC_TIME, saved_locale)
75
76 def test_strftime(self):
77 now = time.time()
78 self._update_variables(now)
79 self.strftest1(now)
80 self.strftest2(now)
81
82 if support.verbose:
83 print("Strftime test, platform: %s, Python version: %s" % \
84 (sys.platform, sys.version.split()[0]))
85
86 for j in range(-5, 5):
87 for i in range(25):
88 arg = now + (i+j*100)*23*3603
89 self._update_variables(arg)
90 self.strftest1(arg)
91 self.strftest2(arg)
92
93 def strftest1(self, now):
94 if support.verbose:

Callers

nothing calls this directly

Calls 5

_update_variablesMethod · 0.95
strftest1Method · 0.95
strftest2Method · 0.95
timeMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected