We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f15db commit 37e47a4Copy full SHA for 37e47a4
1 file changed
Lib/test/datetimetester.py
@@ -1211,13 +1211,11 @@ def test_strptime_leap_year(self):
1211
with self.assertRaises(ValueError):
1212
# The existing behavior that GH-70647 seeks to change.
1213
date.strptime('02-29', '%m-%d')
1214
- with self.assertRaises(ValueError):
1215
- date.strptime('02-29', '%m-%e')
1216
# %e without a year is deprecated, scheduled for removal in 3.17.
1217
_strptime._regex_cache.clear()
1218
with self.assertWarnsRegex(DeprecationWarning,
1219
r'.*day of month without a year.*'):
1220
- date.strptime('02- 1', '%m-%e')
+ date.strptime('02-01', '%m-%e')
1221
with self._assertNotWarns(DeprecationWarning):
1222
date.strptime('20-03-14', '%y-%m-%d')
1223
date.strptime('02-29,2024', '%m-%d,%Y')
0 commit comments