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_pyclbr broken on 2.2 branch
Type: Stage:
Components: Library (Lib) Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: mwh Nosy List: fdrake, mwh
Priority: high Keywords:

Created on 2002-03-12 21:33 by fdrake, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (6)
msg9669 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2002-03-12 21:33
The test suite fails for pyclbr; it looks like Jeremy's
changes for the test need to be back-ported (rev. 1.7),
since the httplib module that it relies on has changed.

test test_pyclbr failed -- Traceback (most recent call
last):
  File "../Lib/test/test_pyclbr.py", line 142, in
test_others
    cm('httplib', ignore=('error',    # set with =
  File "../Lib/test/test_pyclbr.py", line 66, in
checkModule
    self.assertHasattr(module, name, ignore)
  File "../Lib/test/test_pyclbr.py", line 36, in
assertHasattr
    self.failUnless(hasattr(obj, attr))
  File
"/home/fdrake/projects/python22-maint/Lib/unittest.py",
line 262, in failUnless
    if not expr: raise self.failureException, msg
AssertionError

msg9670 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-03-13 11:27
Logged In: YES 
user_id=6656

Oops!
msg9671 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-03-14 17:24
Logged In: YES 
user_id=6656

Used Jeremy's fix from the trunk.  This is related to 

[ 529135 ] test_pyclbr: bad dependency for input

which will remain open.

I guess I'm hoping this is a bug in the test, not in the
library...
msg9672 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-03-14 17:24
Logged In: YES 
user_id=6656

Used Jeremy's fix from the trunk.  This is related to 

[ 529135 ] test_pyclbr: bad dependency for input

which will remain open.

I guess I'm hoping this is a bug in the test, not in the
library...
msg9673 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-03-14 17:26
Logged In: YES 
user_id=6656

Heh, this is what I get for complaining about not getting
enough email from the tracker, I guess.
msg9674 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2002-03-14 19:32
Logged In: YES 
user_id=3066

Yes, there is a bug in the test.  There still is, but it can
be solved for 2.3.  I've opened a separate bug report for that.

(The bug is that test_pyclbr relies on implementation
details of a module for it's test data; it should use some
Python source that it supplies.)
History
Date User Action Args
2022-04-10 16:05:05adminsetgithub: 36249
2002-03-12 21:33:21fdrakecreate