[ python-Bugs-1029561 ] test_pep277 fails

SourceForge.net noreply at sourceforge.net
Thu Oct 21 05:15:55 CEST 2004


Bugs item #1029561, was opened at 2004-09-16 20:24
Message generated for change (Comment added) made by facundobatista
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1029561&group_id=5470

Category: Windows
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Marek Baczynski (imbaczek)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_pep277 fails

Initial Comment:
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


----------------------------------------------------------------------

>Comment By: Facundo Batista (facundobatista)
Date: 2004-10-21 00:15

Message:
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

----------------------------------------------------------------------

Comment By: Miki Tebeka (tebeka)
Date: 2004-10-17 13:06

Message:
Logged In: YES 
user_id=358087

Fails for me on 2.4b1 on winXP

----------------------------------------------------------------------

Comment By: George Yoshida (quiver)
Date: 2004-09-17 06:55

Message:
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


----------------------------------------------------------------------

Comment By: Marek Baczynski (imbaczek)
Date: 2004-09-16 20:25

Message:
Logged In: YES 
user_id=838849

Forgot: Windows XP SP1, Python 2.4a3

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1029561&group_id=5470


More information about the Python-bugs-list mailing list