[Python-checkins] python/dist/src/Lib/test test_funcattrs.py, 1.14, 1.15 test_new.py, 1.18, 1.19

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Fri Aug 13 05:57:24 CEST 2004


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

Modified Files:
	test_funcattrs.py test_new.py 
Log Message:
Whitespace normalization.


Index: test_funcattrs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_funcattrs.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** test_funcattrs.py	12 Aug 2004 18:12:43 -0000	1.14
--- test_funcattrs.py	13 Aug 2004 03:57:22 -0000	1.15
***************
*** 277,281 ****
      cantset(f, "func_globals", 1)
      cantset(f, "__name__", 1)
!     
  
  def test_func_code():
--- 277,281 ----
      cantset(f, "func_globals", 1)
      cantset(f, "__name__", 1)
! 
  
  def test_func_code():

Index: test_new.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_new.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** test_new.py	12 Aug 2004 17:56:29 -0000	1.18
--- test_new.py	13 Aug 2004 03:57:22 -0000	1.19
***************
*** 101,105 ****
  if hasattr(new, 'code'):
      def f(a): pass
!     
      c = f.func_code
      argcount = c.co_argcount
--- 101,105 ----
  if hasattr(new, 'code'):
      def f(a): pass
! 
      c = f.func_code
      argcount = c.co_argcount
***************
*** 117,130 ****
      freevars = c.co_freevars
      cellvars = c.co_cellvars
!     
      d = new.code(argcount, nlocals, stacksize, flags, codestring,
                   constants, names, varnames, filename, name,
                   firstlineno, lnotab, freevars, cellvars)
!     
      # test backwards-compatibility version with no freevars or cellvars
      d = new.code(argcount, nlocals, stacksize, flags, codestring,
                   constants, names, varnames, filename, name,
                   firstlineno, lnotab)
!     
      try: # this used to trigger a SystemError
          d = new.code(-argcount, nlocals, stacksize, flags, codestring,
--- 117,130 ----
      freevars = c.co_freevars
      cellvars = c.co_cellvars
! 
      d = new.code(argcount, nlocals, stacksize, flags, codestring,
                   constants, names, varnames, filename, name,
                   firstlineno, lnotab, freevars, cellvars)
! 
      # test backwards-compatibility version with no freevars or cellvars
      d = new.code(argcount, nlocals, stacksize, flags, codestring,
                   constants, names, varnames, filename, name,
                   firstlineno, lnotab)
! 
      try: # this used to trigger a SystemError
          d = new.code(-argcount, nlocals, stacksize, flags, codestring,
***************
*** 144,148 ****
      else:
          raise TestFailed, "negative co_nlocals didn't trigger an exception"
!     
      try: # this used to trigger a Py_FatalError!
          d = new.code(argcount, nlocals, stacksize, flags, codestring,
--- 144,148 ----
      else:
          raise TestFailed, "negative co_nlocals didn't trigger an exception"
! 
      try: # this used to trigger a Py_FatalError!
          d = new.code(argcount, nlocals, stacksize, flags, codestring,



More information about the Python-checkins mailing list