From 458120dd40db6b4df55a4e96b650e16798ef06a0 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 3 May 2011 11:25:13 +0000 Subject: add hg and python --- sys/lib/python/test/test_imaplib.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sys/lib/python/test/test_imaplib.py (limited to 'sys/lib/python/test/test_imaplib.py') diff --git a/sys/lib/python/test/test_imaplib.py b/sys/lib/python/test/test_imaplib.py new file mode 100644 index 000000000..78bb61300 --- /dev/null +++ b/sys/lib/python/test/test_imaplib.py @@ -0,0 +1,12 @@ +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) -- cgit v1.2.3