[Python-checkins] python/dist/src/Lib/test test_pyclbr.py,1.9,1.10

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 09 Jul 2002 19:37:24 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv31271/python/Lib/test

Modified Files:
	test_pyclbr.py 
Log Message:
assertHasattr():  Made failure msg better than useless.
test_others():  httplib failed in two new ways.  Blame Thumb Boy <wink>.


Index: test_pyclbr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_pyclbr.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_pyclbr.py	5 Jun 2002 19:07:39 -0000	1.9
--- test_pyclbr.py	10 Jul 2002 02:37:21 -0000	1.10
***************
*** 34,38 ****
          if attr in ignore: return
          if not hasattr(obj, attr): print "???", attr
!         self.failUnless(hasattr(obj, attr))
  
  
--- 34,39 ----
          if attr in ignore: return
          if not hasattr(obj, attr): print "???", attr
!         self.failUnless(hasattr(obj, attr),
!                         'expected hasattr(%r, %r)' % (obj, attr))
  
  
***************
*** 140,143 ****
--- 141,146 ----
  
          cm('httplib', ignore=('error',    # set with =
+                               'sendall',  # set with =
+                               '_closedsocket', # it's a nested class
                                'HTTPS',
                                'HTTP11'))   # not on all platforms