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: test_pep277 fails
Type: Stage:
Components: Windows Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: facundobatista, imbaczek, nnorwitz, quiver, tebeka
Priority: normal Keywords:

Created on 2004-09-16 23:24 by imbaczek, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (7)
msg22467 - (view) Author: Marek Baczynski (imbaczek) Date: 2004-09-16 23:24
Running regrtest.py:

test_pep277
test test_pep277 produced unexpected output:
**********************************************************************
*** mismatch between line 3 of expected output and line
3 of actual output:
- ['???', '???', '??????', '????????????', '????G\xdf',
'Ge??-sa?', 'Gr\xfc\xdf-Gott', 'abc', 'ascii']
?                                               ^     
------------
+ ['???', '???', '????-???', '??????', '????????????',
'?????\xdf', 'Gr\xfc\xdf-Gott', 'abc', 'ascii']
?               ++++++++++++                          
     ^
**********************************************************************

But when running just test_pep277.py:
test_directory (__main__.UnicodeFileTests) ...
u'\xdf-\u66e8\u66e9\u66eb'
ok
test_failures (__main__.UnicodeFileTests) ... ok
test_listdir (__main__.UnicodeFileTests) ... ['???',
'???', '????-???', '??????', '????????????',
'?????\xdf', 'Gr\xfc\xdf-Gott', 'abc', 'ascii']
[u'Gr\xfc\xdf-Gott', u'abc', u'ascii',
u'\u0393\u03b5\u03b9\u03ac-\u03c3\u03b1\u03c2',
u'\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435',
u'\u05d4\u05e9\u05e7\u05e6\u05e5\u05e1',
u'\u306b\u307d\u3093',
u'\u66e8\u05e9\u3093\u0434\u0393\xdf',
u'\u66e8\u66e9\u66eb']
ok
test_open (__main__.UnicodeFileTests) ... ok
test_rename (__main__.UnicodeFileTests) ... ok

----------------------------------------------------------------------
Ran 5 tests in 0.109s

OK
msg22468 - (view) Author: Marek Baczynski (imbaczek) Date: 2004-09-16 23:25
Logged In: YES 
user_id=838849

Forgot: Windows XP SP1, Python 2.4a3
msg22469 - (view) Author: George Yoshida (quiver) (Python committer) Date: 2004-09-17 09:55
Logged In: YES 
user_id=671362

Same for me.
Fail for regrtest.py, but OK for test_277.py in isolation.
(Python 2.4a3, Windows 2K SP4, locale:Japan)

But my output is a bit different from yours.

test test_pep277 produced unexpected output:
**********************************************
************************
*** mismatch between line 3 of expected output and line 3 
of actual output:
- ['???', '???', '??????', '????????????', '????G\xdf', 'Ge??-
sa?', 'Gr\xfc\xdf-Gott', 'abc', 'ascii']
+ ['??????', '??\x82\xf1\x84t\x83\xa1s', '?\x9eG?', 'Grus-
Gott', 'abc', 'ascii', '\x82\xc9\x82\xdb\x82\xf1', '\x83\xa1\x83
\xc3\x83\xc7?-\x83\xd0\x83\xbf?', '\x84H\x84t\x84\x82
\x84p\x84r\x84\x83\x84\x84\x84r\x84\x85\x84z\x84\x84\x84u']
**********************************************
************************

This reminds me of the next thread:
* More joy with test_strptime
  http://mail.python.org/pipermail/python-dev/2004-
July/046046.html
msg22470 - (view) Author: Miki Tebeka (tebeka) * Date: 2004-10-17 16:06
Logged In: YES 
user_id=358087

Fails for me on 2.4b1 on winXP
msg22471 - (view) Author: Facundo Batista (facundobatista) * (Python committer) Date: 2004-10-21 03:15
Logged In: YES 
user_id=752496

The tests (through regrtest.py and alone) pass OK to me.

Using (Win2k SP4), Python 2.4b1 (#57, Oct 15 2004, 15:23:38)
[MSC v.1310 32 bit (Intel)] on win32, and:

>>> import locale
>>> locale.getlocale()
['Spanish_Argentina', '1252']

.    Facundo
msg22472 - (view) Author: George Yoshida (quiver) (Python committer) Date: 2005-01-27 20:58
Logged In: YES 
user_id=671362

Changes against Lib/test/test_pep277.py(Revision 1.9) and 
Lib/test/output/test_pep277(Revision 1.3) ironed out the 
problem with Python 2.4, but the same error can be seen with 
Python 2.3.5 RC1.

Is there any chance that they're backported to 2.3 branch 
before 2.3.5 final gets released?
msg22473 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-10-03 06:08
Logged In: YES 
user_id=33168

I didn't see the fix get propagated back to 2.3.5. Python
2.3 isn't maintained any longer, so I'm going to close this.
History
Date User Action Args
2022-04-11 14:56:07adminsetgithub: 40921
2004-09-16 23:24:21imbaczekcreate