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

Tim Peters tim_one@users.sourceforge.net
Fri, 14 Sep 2001 23:35:57 -0700


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

Modified Files:
	test_descr.py 
Log Message:
Since we had a bug with multiplication of dynamic long subclasses, add a
little test to make sure it doesn't come back.


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** test_descr.py	2001/09/15 03:14:32	1.57
--- test_descr.py	2001/09/15 06:35:55	1.58
***************
*** 902,905 ****
--- 902,908 ----
      verify("a"*I(2) == "aa")
      verify(I(2)*"a" == "aa")
+     verify(2*I(3) == 6)
+     verify(I(3)*2 == 6)
+     verify(I(3)*I(2) == 6)
  
      # Test handling of long*seq and seq*long
***************
*** 908,912 ****
      verify("a"*L(2L) == "aa")
      verify(L(2L)*"a" == "aa")
!     
  
  def errors():
--- 911,917 ----
      verify("a"*L(2L) == "aa")
      verify(L(2L)*"a" == "aa")
!     verify(2*L(3) == 6)
!     verify(L(3)*2 == 6)
!     verify(L(3)*L(2) == 6)
  
  def errors():