@@ -656,11 +656,6 @@ def test_shorthand_year_month_day(self):
656656 shorthand = time .strptime (test_date ,formats ["short" ])
657657 long_hand = time .strptime (test_date ,formats ["long" ])
658658 self .assertEqual (shorthand ,long_hand )
659- # ensure datetime functionality
660- import datetime
661- shorthand = datetime .datetime .strptime (test_date ,formats ["short" ])
662- long_hand = datetime .datetime .strptime (test_date ,formats ["long" ])
663- self .assertEqual (shorthand ,long_hand )
664659
665660 def test_shorthand_hour_minute_second (self ):
666661 # Test that token '%T' is equivalent to '%H:%M:%S'
@@ -669,11 +664,6 @@ def test_shorthand_hour_minute_second(self):
669664 shorthand = time .strptime (test_time ,formats ["short" ])
670665 long_hand = time .strptime (test_time ,formats ["long" ])
671666 self .assertEqual (shorthand ,long_hand )
672- # ensure datetime functionality
673- import datetime
674- shorthand = datetime .datetime .strptime (test_time ,formats ["short" ])
675- long_hand = datetime .datetime .strptime (test_time ,formats ["long" ])
676- self .assertEqual (shorthand ,long_hand )
677667
678668class Strptime12AMPMTests (unittest .TestCase ):
679669 """Test a _strptime regression in '%I %p' at 12 noon (12 PM)"""
0 commit comments