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

Guido van Rossum gvanrossum@users.sourceforge.net
Tue, 14 Aug 2001 13:00:35 -0700


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

Modified Files:
	test_descr.py 
Log Message:
Add a test for a weird bug I just discovered: a dynamic subclass
doesn't have a __dict__!


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** test_descr.py	2001/08/12 05:24:18	1.8
--- test_descr.py	2001/08/14 20:00:33	1.9
***************
*** 614,617 ****
--- 614,622 ----
          verify(0, "expected AttributeError")
      verify(a.spam == "spam")
+     class D(C):
+         pass
+     d = D()
+     d.foo = 1
+     verify(d.foo == 1)
  
  def errors():