@@ -1124,8 +1124,8 @@ def test_strptime(self):
11241124 (date (2004 , 2 , 1 ), '02-2004' , '%m-%Y' ), # Month and year swapped
11251125
11261126 # Different day-month-year formats
1127- (date (2004 , 12 , 2 ), '01 /12/2004' , '%d/%m/%Y' ), # Day/Month/Year
1128- (date (2004 , 12 , 2 ), '12/01 /2004' , '%m/%d/%Y' ), # Month/Day/Year
1127+ (date (2004 , 12 , 2 ), '02 /12/2004' , '%d/%m/%Y' ), # Day/Month/Year
1128+ (date (2004 , 12 , 2 ), '12/02 /2004' , '%m/%d/%Y' ), # Month/Day/Year
11291129
11301130 # Different separators
11311131 (date (2023 , 9 , 24 ), '24.09.2023' , '%d.%m.%Y' ), # Dots as separators
@@ -1138,8 +1138,8 @@ def test_strptime(self):
11381138 (date (5 , 2 , 3 ), '0005-02-03' , '%Y-%m-%d' ),
11391139
11401140 # Variations on ISO 8601 format
1141- (date (2023 , 9 , 24 ), '2023-W39-1' , '%G-W%V-%u' ), # ISO week date (Week 39, Monday)
1142- (date (2023 , 9 , 24 ), '2023-267 ' , '%Y-%j' ), # Year and day of the year (Julian)
1141+ (date (2023 , 9 , 25 ), '2023-W39-1' , '%G-W%V-%u' ), # ISO week date (Week 39, Monday)
1142+ (date (2023 , 9 , 25 ), '2023-268 ' , '%Y-%j' ), # Year and day of the year (Julian)
11431143 ]
11441144 for expected , string , format in inputs :
11451145 with self .subTest (string = string , format = format ):
@@ -3829,6 +3829,7 @@ def test_strptime(self):
38293829 ]
38303830 for expected , string , format in inputs :
38313831 with self .subTest (string = string , format = format ):
3832+ got = self .theclass .strptime (string , format )
38323833 self .assertEqual (expected , got )
38333834 self .assertIs (type (got ), self .theclass )
38343835
0 commit comments