[Python-bugs-list] [ python-Bugs-522395 ] test_descrtut fails on OSX

noreply@sourceforge.net noreply@sourceforge.net
Mon, 25 Feb 2002 05:53:18 -0800


Bugs item #522395, was opened at 2002-02-25 03:15
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=522395&group_id=5470

Category: Python Interpreter Core
Group: Python 2.2.1 candidate
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Michael Hudson (mwh)
Summary: test_descrtut fails on OSX

Initial Comment:
I'm submitting to you because I have no way right now to see whether this is a general bug, something you didn't get around to or an OSX-specific problem.

test_descrtut fails on OSX. I did the staring at the two outputs already: __doc__ is in the actual output but not in the expected output.

test_descrtut
*****************************************************************
Failure in example:
pprint.pprint(dir(list))    # like list.__dict__.keys(), but sorted
from line #30 of test.test_descrtut.__test__.tut3
Expected:
['__add__',
 '__class__',
 '__contains__',
 '__delattr__',
 '__delitem__',
 '__delslice__',
 '__eq__',
 '__ge__',
 '__getattribute__',
 '__getitem__',
 '__getslice__',
 '__gt__',
 '__hash__',
 '__iadd__',
 '__imul__',
 '__init__',
 '__le__',
 '__len__',
 '__lt__',
 '__mul__',
 '__ne__',
 '__new__',
 '__reduce__',
 '__repr__',
 '__rmul__',
 '__setattr__',
 '__setitem__',
 '__setslice__',
 '__str__',
 'append',
 'count',
 'extend',
 'index',
 'insert',
 'pop',
 'remove',
 'reverse',
 'sort']
Got:
['__add__',
 '__class__',
 '__contains__',
 '__delattr__',
 '__delitem__',
 '__delslice__',
 '__doc__',
 '__eq__',
 '__ge__',
 '__getattribute__',
 '__getitem__',
 '__getslice__',
 '__gt__',
 '__hash__',
 '__iadd__',
 '__imul__',
 '__init__',
 '__le__',
 '__len__',
 '__lt__',
 '__mul__',
 '__ne__',
 '__new__',
 '__reduce__',
 '__repr__',
 '__rmul__',
 '__setattr__',
 '__setitem__',
 '__setslice__',
 '__str__',
 'append',
 'count',
 'extend',
 'index',
 'insert',
 'pop',
 'remove',
 'reverse',
 'sort']
*****************************************************************
1 items had failures:
   1 of  13 in test.test_descrtut.__test__.tut3
***Test Failed*** 1 failures.
test test_descrtut failed -- 1 of 96 doctests failed


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

>Comment By: Michael Hudson (mwh)
Date: 2002-02-25 05:53

Message:
Logged In: YES 
user_id=6656

Yup.  Tim fixed this on the trunk.

Just the unicode test failure to go, then.

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

Comment By: Jack Jansen (jackjansen)
Date: 2002-02-25 05:25

Message:
Logged In: YES 
user_id=45365

This test passes on the trunk.

Maybe you forgot the move a revision of the test (or test output file) to the branch?

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

Comment By: Michael Hudson (mwh)
Date: 2002-02-25 04:38

Message:
Logged In: YES 
user_id=6656

This'll be related to the "allow unicode docstrings" issue,
I'm sure.  Problem probably exists on the trunk, too.

Will investigate, after I've built the trunk, had lunch and
given a tutorial :)

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

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