Skip to content

Commit e77ff96

Browse files
authored
Remove datetime tests from test_strptime.py (added to datetimetester.py instead)
1 parent c23b731 commit e77ff96

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Lib/test/test_strptime.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

678668
class Strptime12AMPMTests(unittest.TestCase):
679669
"""Test a _strptime regression in '%I %p' at 12 noon (12 PM)"""

0 commit comments

Comments
 (0)