[New-bugs-announce] [issue27426] Encoding mismatch causes some tests to fail on Windows
Emanuel Barry
report at bugs.python.org
Thu Jun 30 13:26:35 EDT 2016
New submission from Emanuel Barry:
Specifically, test_strptime fails:
ss.............F.....................E...........
======================================================================
ERROR: test_timezone (__main__.StrptimeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "E:\GitHub\cpython\lib\test\test_strptime.py", line 330, in test_timezone
strp_output = _strptime._strptime_time(strf_output, "%Z")
File "E:\GitHub\cpython\lib\_strptime.py", line 559, in _strptime_time
tt = _strptime(data_string, format)[0]
File "E:\GitHub\cpython\lib\_strptime.py", line 365, in _strptime
data_string[found.end():])
ValueError: unconverted data remains: (heure d?été)
======================================================================
FAIL: test_timezone (__main__.LocaleTime_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "E:\GitHub\cpython\lib\test\test_strptime.py", line 78, in test_timezone
(timezone, self.LT_ins.timezone))
AssertionError: False is not true : timezone est (heure d?été) not found in (frozenset({'utc', 'est', 'gmt'}), frozenset({'est (heure d\x92été)'}))
----------------------------------------------------------------------
Ran 49 tests in 0.128s
FAILED (failures=1, errors=1, skipped=2)
Eryk Sun explains the cause in http://bugs.python.org/issue26226#msg269462
----------
components: Tests, Windows
messages: 269608
nosy: ebarry, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Encoding mismatch causes some tests to fail on Windows
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27426>
_______________________________________
More information about the New-bugs-announce
mailing list