[Python-checkins] python/dist/src/Lib/test test_descr.py,1.166,1.167

mwh@users.sourceforge.net mwh@users.sourceforge.net
Wed, 27 Nov 2002 07:40:11 -0800


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

Modified Files:
	test_descr.py 
Log Message:
I don't know why staring at the email to python-checkins made me
see problems with my code that I didn't see before the checkin, but:

When a subtype .mro() fails, we need to reset the type whose __bases__ 
are being changed, too.  Fix + test.


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.166
retrieving revision 1.167
diff -C2 -d -r1.166 -r1.167
*** test_descr.py	27 Nov 2002 15:20:19 -0000	1.166
--- test_descr.py	27 Nov 2002 15:40:09 -0000	1.167
***************
*** 3567,3570 ****
--- 3567,3571 ----
      
      E_mro_before = E.__mro__
+     D_mro_before = D.__mro__
  
      try:
***************
*** 3572,3575 ****
--- 3573,3577 ----
      except RuntimeError:
          vereq(E.__mro__, E_mro_before)
+         vereq(D.__mro__, D_mro_before)
      else:
          raise TestFailed, "exception not propagated"