Martin v. Löwis | ea752fb | 2002-01-05 11:31:49 +0000 | [diff] [blame] | 1 | import imaplib |
Tim Peters | 108b791 | 2002-07-31 16:42:33 +0000 | [diff] [blame] | 2 | import time |
Martin v. Löwis | ea752fb | 2002-01-05 11:31:49 +0000 | [diff] [blame] | 3 | |
Piers Lauder | dc96ae6 | 2002-08-03 11:14:43 +0000 | [diff] [blame] | 4 | # We can check only that it successfully produces a result, |
| 5 | # not the correctness of the result itself, since the result |
| 6 | # depends on the timezone the machine is in. |
Piers Lauder | f0a70f6 | 2002-06-17 07:06:24 +0000 | [diff] [blame] | 7 | |
Piers Lauder | dc96ae6 | 2002-08-03 11:14:43 +0000 | [diff] [blame] | 8 | timevalues = [2000000000, 2000000000.0, time.localtime(2000000000), |
Tim Peters | 8d30b1e | 2002-08-04 06:53:18 +0000 | [diff] [blame] | 9 | '"18-May-2033 05:33:20 +0200"'] |
Martin v. Löwis | ea752fb | 2002-01-05 11:31:49 +0000 | [diff] [blame] | 10 | |
| 11 | for t in timevalues: |
Piers Lauder | dc96ae6 | 2002-08-03 11:14:43 +0000 | [diff] [blame] | 12 | imaplib.Time2Internaldate(t) |