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

Tim Peters tim_one@users.sourceforge.net
Fri, 06 Jul 2001 11:53:49 -0700


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

Modified Files:
      Tag: descr-branch
	test_descr.py 
Log Message:
Rename spam.c to xxsubtype.c, to serve as a permanent subtyping example
we can merge back into the trunk later.
TODO:  This works on Windows but I don't know what's needed on Unix.
Leaving that part to Guido.


Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/Attic/test_descr.py,v
retrieving revision 1.1.2.29
retrieving revision 1.1.2.30
diff -C2 -r1.1.2.29 -r1.1.2.30
*** test_descr.py	2001/07/05 21:42:37	1.1.2.29
--- test_descr.py	2001/07/06 18:53:47	1.1.2.30
***************
*** 218,224 ****
  def spamlists():
      if verbose: print "Testing spamlist operations..."
!     import copy, spam
      def spamlist(l, memo=None):
!         import spam
          return spam.spamlist(l)
      # This is an ugly hack:
--- 218,224 ----
  def spamlists():
      if verbose: print "Testing spamlist operations..."
!     import copy, xxsubtype as spam
      def spamlist(l, memo=None):
!         import xxsubtype as spam
          return spam.spamlist(l)
      # This is an ugly hack:
***************
*** 255,261 ****
  def spamdicts():
      if verbose: print "Testing spamdict operations..."
!     import copy, spam
      def spamdict(d, memo=None):
!         import spam
          sd = spam.spamdict()
          for k, v in d.items(): sd[k] = v
--- 255,261 ----
  def spamdicts():
      if verbose: print "Testing spamdict operations..."
!     import copy, xxsubtype as spam
      def spamdict(d, memo=None):
!         import xxsubtype as spam
          sd = spam.spamdict()
          for k, v in d.items(): sd[k] = v