[Python-checkins] python/dist/src/Lib/test test_builtin.py, 1.22, 1.23

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Fri Aug 15 11:52:42 EDT 2003


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

Modified Files:
	test_builtin.py 
Log Message:
Make a copy of L before appending, so the global L remains
unchanged (and sys.gettotalrefcount() remains constant).

Fix a few typos.


Index: test_builtin.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_builtin.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** test_builtin.py	2 Aug 2003 07:42:56 -0000	1.22
--- test_builtin.py	15 Aug 2003 17:52:39 -0000	1.23
***************
*** 365,371 ****
  
      def test_filter_subclasses(self):
!         # test, that filter() never returns tuple, str or unicode subclasses
!         # and that the result always go's through __getitem__
!         funcs = (None, lambda x: True)
          class tuple2(tuple):
              def __getitem__(self, index):
--- 365,371 ----
  
      def test_filter_subclasses(self):
!         # test that filter() never returns tuple, str or unicode subclasses
!         # and that the result always goes through __getitem__
!         funcs = (None, bool, lambda x: True)
          class tuple2(tuple):
              def __getitem__(self, index):
***************
*** 631,635 ****
                  ('1' + '0'*100, 10L**100)
          ]
!         L2 = L
          if have_unicode:
              L2 += [
--- 631,635 ----
                  ('1' + '0'*100, 10L**100)
          ]
!         L2 = L[:]
          if have_unicode:
              L2 += [





More information about the Python-checkins mailing list