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

Tim Peters tim_one@users.sourceforge.net
Mon, 10 Sep 2001 16:37:48 -0700


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

Modified Files:
	test_descr.py 
Log Message:
More on SF bug [#460020] bug or feature: unicode() and subclasses.
tuple(i) repaired to return a true tuple when i is an instance of a
tuple subclass.
Added PyTuple_CheckExact macro.
PySequence_Tuple():  if a tuple-like object isn't exactly a tuple, it's
not safe to return the object as-is -- make a new tuple of it instead.


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** test_descr.py	2001/09/10 23:12:14	1.35
--- test_descr.py	2001/09/10 23:37:46	1.36
***************
*** 1417,1421 ****
      a = madtuple((1,2,3,4,5))
      verify(tuple(a) == (1,2,3,4,5))
!     #XXX verify(tuple(a).__class__ is tuple)
      a = madtuple(())
      verify(tuple(a) == ())
--- 1417,1421 ----
      a = madtuple((1,2,3,4,5))
      verify(tuple(a) == (1,2,3,4,5))
!     verify(tuple(a).__class__ is tuple)
      a = madtuple(())
      verify(tuple(a) == ())