[Python-checkins] python/dist/src/Lib/test test_decorators.py, 1.1, 1.2

anthonybaxter at users.sourceforge.net anthonybaxter at users.sourceforge.net
Mon Aug 2 13:34:13 CEST 2004


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

Modified Files:
	test_decorators.py 
Log Message:
and a unit test for the staticmethod-of-a-non-method failure just fixed

Index: test_decorators.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_decorators.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_decorators.py	2 Aug 2004 06:09:54 -0000	1.1
--- test_decorators.py	2 Aug 2004 11:34:10 -0000	1.2
***************
*** 79,82 ****
--- 79,88 ----
          self.assertEqual(C().foo(), 42)
  
+     def test_staticmethod_function(self):
+         @staticmethod
+         def notamethod(x): 
+             return x
+         self.assertRaises(TypeError, notamethod, 1)
+ 
      def test_dotted(self):
          decorators = MiscDecorators()



More information about the Python-checkins mailing list