File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff 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' )
You can’t perform that action at this time.
0 commit comments