[Python-checkins] CVS: python/dist/src/Lib/test test_descr.py,1.24,1.25

Guido van Rossum gvanrossum@users.sourceforge.net
Wed, 29 Aug 2001 08:48:45 -0700


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

Modified Files:
	test_descr.py 
Log Message:
Now that int is subclassable, have to change a test that tests for
non-subclassability.  (More tests for number subclassing should follow.)


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** test_descr.py	2001/08/28 18:23:24	1.24
--- test_descr.py	2001/08/29 15:48:43	1.25
***************
*** 685,694 ****
  
      try:
!         class C(int):
              pass
      except TypeError:
          pass
      else:
!         verify(0, "inheritance from int should be illegal")
  
      try:
--- 685,694 ----
  
      try:
!         class C(type(len)):
              pass
      except TypeError:
          pass
      else:
!         verify(0, "inheritance from CFunction should be illegal")
  
      try: