(self)
| 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: |
nothing calls this directly
no test coverage detected