summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_time.py
diff options
context:
space:
mode:
authorMalcolm Smith <smith@chaquo.com>2024-09-27 14:35:18 (GMT)
committerGitHub <noreply@github.com>2024-09-27 14:35:18 (GMT)
commit0a3577bdfcb7132c92a3f7fb2ac231bc346383c0 (patch)
tree2483ddfdd84c69a56091a72869686a72f84e0f44 /Lib/test/test_time.py
parent365dffbaada421db8fdb684a84d1fb311b75ec40 (diff)
downloadcpython-0a3577bdfcb7132c92a3f7fb2ac231bc346383c0.zip
cpython-0a3577bdfcb7132c92a3f7fb2ac231bc346383c0.tar.gz
cpython-0a3577bdfcb7132c92a3f7fb2ac231bc346383c0.tar.bz2
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
Diffstat (limited to 'Lib/test/test_time.py')
-rw-r--r--Lib/test/test_time.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
index 293799f..530c317 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -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: