Skip to content

Commit c61cb2f

Browse files
committed
add %F and %T tests, as requested, for ensuring strptime & strftime token symmetry
1 parent 707ea08 commit c61cb2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_time.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ def test_strptime(self):
358358
# Should be able to go round-trip from strftime to strptime without
359359
# raising an exception.
360360
tt = time.gmtime(self.t)
361-
for directive in ('a', 'A', 'b', 'B', 'c', 'd', 'H', 'I',
362-
'j', 'm', 'M', 'p', 'S',
361+
for directive in ('a', 'A', 'b', 'B', 'c', 'd', 'F', 'H', 'I',
362+
'j', 'm', 'M', 'p', 'S', 'T',
363363
'U', 'w', 'W', 'x', 'X', 'y', 'Y', 'Z', '%'):
364364
format = '%' + directive
365365
if directive == 'd':

0 commit comments

Comments
 (0)