Skip to content

Commit 37e47a4

Browse files
fix tests
1 parent d0f15db commit 37e47a4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/datetimetester.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,13 +1211,11 @@ def test_strptime_leap_year(self):
12111211
with self.assertRaises(ValueError):
12121212
# The existing behavior that GH-70647 seeks to change.
12131213
date.strptime('02-29', '%m-%d')
1214-
with self.assertRaises(ValueError):
1215-
date.strptime('02-29', '%m-%e')
12161214
# %e without a year is deprecated, scheduled for removal in 3.17.
12171215
_strptime._regex_cache.clear()
12181216
with self.assertWarnsRegex(DeprecationWarning,
12191217
r'.*day of month without a year.*'):
1220-
date.strptime('02- 1', '%m-%e')
1218+
date.strptime('02-01', '%m-%e')
12211219
with self._assertNotWarns(DeprecationWarning):
12221220
date.strptime('20-03-14', '%y-%m-%d')
12231221
date.strptime('02-29,2024', '%m-%d,%Y')

0 commit comments

Comments
 (0)