This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author oefe
Recipients oefe
Date 2008-10-05.12:47:16
SpamBayes Score 4.80083e-08
Marked as misclassified No
Message-id <1223210837.43.0.59197631848.issue4046@psf.upfronthosting.co.za>
In-reply-to
Content
test_formatdate_usegmt (in test_email.py) fails if the environment 
variable LANG is set to a non-english locale.

Python 3.0rc1 on MacOSX 10.5.5

$ LANG=en_US.UTF-8 ./python.exe -E -bb ./Lib/test/regrtest.py -l 
test_email
test_email
1 test OK.

$ LANG=de_DE.UTF-8 ./python.exe -E -bb ./Lib/test/regrtest.py -l 
test_email
test_email
test test_email failed -- Traceback (most recent call last):
  File "/Users/martina/Downloads/Python-
3.0rc1/Lib/email/test/test_email.py", line 2139, in 
test_formatdate_usegmt
    time.strftime('%a, %d %b %Y %H:%M:%S -0000', time.gmtime(now)))
AssertionError: 'Sun, 05 Oct 2008 12:44:04 -0000' != 'So, 05 Okt 2008 
12:44:04 -0000'

1 test failed:
    test_email
History
Date User Action Args
2008-10-05 12:47:17oefesetrecipients: + oefe
2008-10-05 12:47:17oefesetmessageid: <1223210837.43.0.59197631848.issue4046@psf.upfronthosting.co.za>
2008-10-05 12:47:16oefelinkissue4046 messages
2008-10-05 12:47:16oefecreate