mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
gh-123017: Add Android to the list of platforms where strftime doesn't support negative years (#124467)
Add Android to the list of platforms where `strftime` doesn't support negative years
This commit is contained in:
parent
365dffbaad
commit
0a3577bdfc
3 changed files with 9 additions and 3 deletions
|
|
@ -654,8 +654,7 @@ class _TestStrftimeYear:
|
|||
self.test_year('%04d', func=year4d)
|
||||
|
||||
def skip_if_not_supported(y):
|
||||
msg = "strftime() is limited to [1; 9999] with Visual Studio"
|
||||
# Check that it doesn't crash for year > 9999
|
||||
msg = f"strftime() does not support year {y} on this platform"
|
||||
try:
|
||||
time.strftime('%Y', (y,) + (0,) * 8)
|
||||
except ValueError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue