test_strptime
fails when time.strftime
does not support %Z
format string
#121782
Labels
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
As time.strftime doc says:
Some C libraries may replace
%Z
with a null character, which may causetest_strptime.CalculationTests
to fail. For example:In my opinion, removing the deprecated
%Z
fromformat_string
variable will not affect those tests.Similar tests that may fail:
test_strptime.CalculationTests.test_day_of_week_calculation
test_strptime.CalculationTests.test_gregorian_calculation
test_strptime.CalculationTests.test_julian_calculation
test_time.TimeTestCase.test_strptime
CPython versions tested on:
3.12
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: