[Python-checkins] CVS: python/dist/src/Lib/test test_imaplib.py,NONE,1.1
Martin v. L?wis
loewis@users.sourceforge.net
Sat, 05 Jan 2002 03:31:51 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv31997/Lib/test
Added Files:
test_imaplib.py
Log Message:
Check for time.struct_time in addition to tuples. Use 3 characters
for zone hours. Fixes #499169.
--- NEW FILE: test_imaplib.py ---
from test_support import verify,verbose
import imaplib
import time
# We can check only that it successfully produces a result,
# not the correctness of the result itself, since the result
# depends on the timezone the machine is in.
timevalues = [2000000000, 2000000000.0, time.localtime(2000000000),
"18-May-2033 05:33:20 +0200"]
for t in timevalues:
imaplib.Time2Internaldate(t)