[Python-checkins] python/dist/src/Lib/test test_imaplib.py,1.7,1.8

pierslauder@users.sourceforge.net pierslauder@users.sourceforge.net
Sat, 03 Aug 2002 04:14:46 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv8427/dist/src/Lib/test

Modified Files:
	test_imaplib.py 
Log Message:
revert to version 1.2

Index: test_imaplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_imaplib.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_imaplib.py	31 Jul 2002 16:42:33 -0000	1.7
--- test_imaplib.py	3 Aug 2002 11:14:43 -0000	1.8
***************
*** 2,11 ****
  import time
  
! timevalues = [2000000000, 2000000000.0, time.localtime(2000000000),
!               '"18-May-2033 05:33:20 +0200"', '"18-May-2033 13:33:20 +1000"']
  
! check = timevalues[2]
  
  for t in timevalues:
!     if check <> imaplib.Internaldate2tuple('INTERNALDATE ' + imaplib.Time2Internaldate(t)):
!         print 'incorrect result when converting', `t`
--- 2,12 ----
  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)