[Python-checkins] python/dist/src/Lib/test test_funcattrs.py, 1.13, 1.14

mwh at users.sourceforge.net mwh at users.sourceforge.net
Thu Aug 12 20:12:46 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2096/Lib/test

Modified Files:
	test_funcattrs.py 
Log Message:
This is my patch

[ 1004703 ] Make func_name writable

plus fixing a couple of nits in the documentation changes spotted by MvL
and a Misc/NEWS entry.


Index: test_funcattrs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_funcattrs.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** test_funcattrs.py	31 Jan 2003 18:33:17 -0000	1.13
--- test_funcattrs.py	12 Aug 2004 18:12:43 -0000	1.14
***************
*** 269,274 ****
      verify(f.__name__ == "f")
      verify(f.func_name == "f")
!     cantset(f, "func_name", "f")
!     cantset(f, "__name__", "f")
  
  def test_func_code():
--- 269,281 ----
      verify(f.__name__ == "f")
      verify(f.func_name == "f")
!     f.__name__ = "g"
!     verify(f.__name__ == "g")
!     verify(f.func_name == "g")
!     f.func_name = "h"
!     verify(f.__name__ == "h")
!     verify(f.func_name == "h")
!     cantset(f, "func_globals", 1)
!     cantset(f, "__name__", 1)
!     
  
  def test_func_code():



More information about the Python-checkins mailing list