summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyclbr.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-07-10 02:37:21 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-07-10 02:37:21 (GMT)
commit5e5ca564762db20e5b1caf168e642b333782b957 (patch)
treeb31c5b903ffd2094f1f77d04811e1cbacca6dbfc /Lib/test/test_pyclbr.py
parent29d27ac4fe039dc8c8b1a612ebb1b46457767f75 (diff)
downloadcpython-5e5ca564762db20e5b1caf168e642b333782b957.zip
cpython-5e5ca564762db20e5b1caf168e642b333782b957.tar.gz
cpython-5e5ca564762db20e5b1caf168e642b333782b957.tar.bz2
assertHasattr(): Made failure msg better than useless.
test_others(): httplib failed in two new ways. Blame Thumb Boy <wink>.
Diffstat (limited to 'Lib/test/test_pyclbr.py')
-rw-r--r--Lib/test/test_pyclbr.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_pyclbr.py b/Lib/test/test_pyclbr.py
index 0f3319f..ce352af 100644
--- a/Lib/test/test_pyclbr.py
+++ b/Lib/test/test_pyclbr.py
@@ -33,7 +33,8 @@ class PyclbrTest(unittest.TestCase):
''' succeed iff hasattr(obj,attr) or attr in ignore. '''
if attr in ignore: return
if not hasattr(obj, attr): print "???", attr
- self.failUnless(hasattr(obj, attr))
+ self.failUnless(hasattr(obj, attr),
+ 'expected hasattr(%r, %r)' % (obj, attr))
def assertHaskey(self, obj, key, ignore):
@@ -139,6 +140,8 @@ class PyclbrTest(unittest.TestCase):
cm('aifc', ignore=('openfp',)) # set with =
cm('httplib', ignore=('error', # set with =
+ 'sendall', # set with =
+ '_closedsocket', # it's a nested class
'HTTPS',
'HTTP11')) # not on all platforms