File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -649,20 +649,19 @@ def test_mar1_comes_after_feb29_even_when_omitting_the_year(self):
649649 time .strptime ("Feb 29" , "%b %d" ),
650650 time .strptime ("Mar 1" , "%b %d" ))
651651
652- def test_shorthand_year_month_day (self ):
652+ def test_strptime_F_format (self ):
653653 test_date = "2025-10-26"
654654 self .assertEqual (
655655 time .strptime (test_date ,"%F" ),
656656 time .strptime (test_date ,"%Y-%m-%d" )
657657 )
658658
659- def test_shorthand_hour_minute_second (self ):
660- # Test that token '%T' is equivalent to '%H:%M:%S'
661- formats = dict (short = "%T" ,long = "%H:%M:%S" )
659+ def test_strptime_T_format (self ):
662660 test_time = "15:00:00"
663- shorthand = time .strptime (test_time ,formats ["short" ])
664- long_hand = time .strptime (test_time ,formats ["long" ])
665- self .assertEqual (shorthand ,long_hand )
661+ self .assertEqual (
662+ time .strptime (test_time ,"%T" ),
663+ time .strptime (test_time ,"%H:%M:%S" )
664+ )
666665
667666class Strptime12AMPMTests (unittest .TestCase ):
668667 """Test a _strptime regression in '%I %p' at 12 noon (12 PM)"""
You can’t perform that action at this time.
0 commit comments