Skip to content

Commit 5193157

Browse files
committed
use theclass() and test '\s+' functionality, as requested
1 parent fcc03cf commit 5193157

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Lib/test/datetimetester.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2208,10 +2208,13 @@ def test_strptime_D_format(self):
22082208
)
22092209

22102210
def test_strptime_t_format(self):
2211-
test_date = "2026\t02\t16"
2211+
test_year,test_month,test_day = 2026,2,20
22122212
self.assertEqual(
2213-
self.theclass.strptime(test_date, "%Y%t%m%t%d"),
2214-
self.theclass.strptime(test_date, "%Y\t%m\t%d")
2213+
self.theclass.strptime(
2214+
f'{test_year} \r {test_month}\t \n{test_day}',
2215+
"%Y%t%m%t%d"
2216+
),
2217+
self.theclass(test_year,test_month,test_day)
22152218
)
22162219

22172220

0 commit comments

Comments
 (0)