Skip to content

Commit dc96ae6

Browse files
author
Piers Lauder
committed
revert to version 1.2
1 parent 0cd53a6 commit dc96ae6

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Lib/test/test_imaplib.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import imaplib
22
import time
33

4-
timevalues = [2000000000, 2000000000.0, time.localtime(2000000000),
5-
'"18-May-2033 05:33:20 +0200"', '"18-May-2033 13:33:20 +1000"']
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.
67

7-
check = timevalues[2]
8+
timevalues = [2000000000, 2000000000.0, time.localtime(2000000000),
9+
"18-May-2033 05:33:20 +0200"]
810

911
for t in timevalues:
10-
if check <> imaplib.Internaldate2tuple('INTERNALDATE ' + imaplib.Time2Internaldate(t)):
11-
print 'incorrect result when converting', `t`
12+
imaplib.Time2Internaldate(t)

0 commit comments

Comments
 (0)