[New-bugs-announce] [issue4046] test_formatdate_usegmt fails on non-englisch locale

Martina Oefelein report at bugs.python.org
Sun Oct 5 14:47:17 CEST 2008


New submission from Martina Oefelein <Martina at oefelein.de>:

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

----------
components: Tests
messages: 74343
nosy: oefe
severity: normal
status: open
title: test_formatdate_usegmt fails on non-englisch locale
type: behavior
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4046>
_______________________________________


More information about the New-bugs-announce mailing list