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

Guido van Rossum gvanrossum@users.sourceforge.net
Mon, 24 Sep 2001 11:47:42 -0700


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

Modified Files:
	test_descr.py 
Log Message:
Another comparison patch-up: comparing a type with a dynamic metatype
to one with a static metatype raised an obscure error.


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -d -r1.72 -r1.73
*** test_descr.py	2001/09/24 17:52:04	1.72
--- test_descr.py	2001/09/24 18:47:40	1.73
***************
*** 922,925 ****
--- 922,932 ----
      verify(L(3)*L(2) == 6)
  
+     # Test comparison of classes with dynamic metaclasses
+     class dynamicmetaclass(type):
+         __dynamic__ = 1
+     class someclass:
+         __metaclass__ = dynamicmetaclass
+     verify(someclass != object)
+ 
  def errors():
      if verbose: print "Testing errors..."