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

Tim Peters tim_one@users.sourceforge.net
Fri, 13 Jul 2001 18:38:58 -0700


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

Modified Files:
      Tag: descr-branch
	test_descr.py 
Log Message:
test_descr is failing because e.g.

>>> a = object()
>>> a.foo = 12
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: 'object' object has only read-only attributes (assign to .foo)
>>>

now but raised AttributeError before.  I'm not sure which is better, but
I want to merge the trunk into the branch again now so have a short-term
but intense <wink> interest in just having all tests pass first.


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/Attic/test_descr.py,v
retrieving revision 1.1.2.33
retrieving revision 1.1.2.34
diff -C2 -r1.1.2.33 -r1.1.2.34
*** test_descr.py	2001/07/10 22:10:30	1.1.2.33
--- test_descr.py	2001/07/14 01:38:56	1.1.2.34
***************
*** 484,488 ****
      try:
          a.foo = 12
!     except AttributeError:
          pass
      else:
--- 484,488 ----
      try:
          a.foo = 12
!     except TypeError:
          pass
      else: