~ubuntu-branches/ubuntu/karmic/pypy/karmic

« back to all changes in this revision

Viewing changes to lib-python/2.4.1/test/test_imaplib.py

  • Committer: Bazaar Package Importer
  • Author(s): Alexandre Fayolle
  • Date: 2007-04-13 09:33:09 UTC
  • Revision ID: james.westby@ubuntu.com-20070413093309-yoojh4jcoocu2krz
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import imaplib
 
2
import time
 
3
 
 
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.
 
7
 
 
8
timevalues = [2000000000, 2000000000.0, time.localtime(2000000000),
 
9
              '"18-May-2033 05:33:20 +0200"']
 
10
 
 
11
for t in timevalues:
 
12
    imaplib.Time2Internaldate(t)