Remove caching of TimeRE (and thus LocaleTime) instance. Error was b… · python/cpython@175ddb5 · GitHub
Skip to content

Commit 175ddb5

Browse files
committed
Remove caching of TimeRE (and thus LocaleTime) instance. Error was being
caught when executing test_strptime, test_logging, and test_time in that order when the testing of "%c" occured. Suspect the cache was not being recreated (the test passed when test_logging was forced to re-establish the locale).
1 parent 98741af commit 175ddb5

2 files changed

Lines changed: 23 additions & 48 deletions

File tree

Lib/_strptime.py

Lines changed: 13 additions & 41 deletions

Lib/test/test_strptime.py

Lines changed: 10 additions & 7 deletions

0 commit comments

Comments
 (0)