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.

classification
Title: Encoding mismatch causes some tests to fail on Windows
Type: behavior Stage: resolved
Components: Tests, Windows Versions: Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: abarry, eryksun, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Priority: normal Keywords: patch

Created on 2016-06-30 17:26 by abarry, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 3740 closed denis-osipov, 2017-09-25 07:07
Messages (2)
msg269608 - (view) Author: Anilyka Barry (abarry) * (Python triager) Date: 2016-06-30 17:26
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
msg333665 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-01-15 10:26
I'm quite sure that this bug has been fixed in the meanwhile. If it still fails, please give more information about your configuration: ANSI code page, regional configuration, Windows version, etc.
History
Date User Action Args
2022-04-11 14:58:33adminsetgithub: 71613
2019-01-15 10:26:14vstinnersetstatus: open -> closed

nosy: + vstinner
messages: + msg333665

resolution: fixed
stage: patch review -> resolved
2017-09-25 07:07:35denis-osipovsetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request3727
2016-06-30 17:26:35abarrycreate