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

Tim Peters tim_one@users.sourceforge.net
Sat, 07 Jul 2001 18:39:01 -0700


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

Modified Files:
      Tag: descr-branch
	test_descr.py 
Log Message:
Fixed two shallow errors in test_descr.py.  This leaves us with the first
"real error" due to the merge (a memory fault; see PLAN.txt).
Explained the test_generators.py failure; generators work fine; it's a
change in the way errors get reported when attempting to set an attribute
on an object that doesn't have a setattr slot; see PLAN.txt.


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/Attic/test_descr.py,v
retrieving revision 1.1.2.30
retrieving revision 1.1.2.31
diff -C2 -r1.1.2.30 -r1.1.2.31
*** test_descr.py	2001/07/06 18:53:47	1.1.2.30
--- test_descr.py	2001/07/08 01:38:59	1.1.2.31
***************
*** 120,124 ****
      verify(l == l1)
      testunop({1:2,3:4}, 2, "len(a)", "__len__")
!     testunop({1:2,3:4}, "{3: 4, 1: 2}", "repr(a)", "__repr__")
      testset2op({1:2,3:4}, 2, 3, {1:2,2:3,3:4}, "a[b]=c", "__setitem__")
  
--- 120,124 ----
      verify(l == l1)
      testunop({1:2,3:4}, 2, "len(a)", "__len__")
!     testunop({1:2,3:4}, "{1: 2, 3: 4}", "repr(a)", "__repr__")
      testset2op({1:2,3:4}, 2, 3, {1:2,2:3,3:4}, "a[b]=c", "__setitem__")
  
***************
*** 281,285 ****
      verify(l == l1)
      testunop(spamdict({1:2,3:4}), 2, "len(a)", "__len__")
!     testunop(spamdict({1:2,3:4}), "{3: 4, 1: 2}", "repr(a)", "__repr__")
      testset2op(spamdict({1:2,3:4}), 2, 3, spamdict({1:2,2:3,3:4}),
                 "a[b]=c", "__setitem__")
--- 281,285 ----
      verify(l == l1)
      testunop(spamdict({1:2,3:4}), 2, "len(a)", "__len__")
!     testunop(spamdict({1:2,3:4}), "{1: 2, 3: 4}", "repr(a)", "__repr__")
      testset2op(spamdict({1:2,3:4}), 2, 3, spamdict({1:2,2:3,3:4}),
                 "a[b]=c", "__setitem__")