tests/test_graphics_charts.py
branchpy33
changeset 3721 0c93dd8ff567
parent 3617 ae5744e97c42
child 3794 398ea04239b5
--- a/tests/test_graphics_charts.py	Fri Feb 15 15:54:16 2013 +0000
+++ b/tests/test_graphics_charts.py	Tue Apr 30 14:20:22 2013 +0100
@@ -80,7 +80,7 @@
     bc.categoryAxis.labels.angle = 30
 
     catNames = string.split('Jan Feb Mar Apr May Jun Jul Aug', ' ')
-    catNames = map(lambda n:n+'-99', catNames)
+    catNames = [n+'-99' for n in catNames]
     bc.categoryAxis.categoryNames = catNames
     drawing.add(bc)
 
@@ -114,7 +114,7 @@
     bc.categoryAxis.labels.angle = 30
 
     catNames = string.split('Jan Feb Mar Apr May Jun Jul Aug', ' ')
-    catNames = map(lambda n:n+'-99', catNames)
+    catNames = [n+'-99' for n in catNames]
     bc.categoryAxis.categoryNames = catNames
     drawing.add(bc)
 
@@ -347,7 +347,7 @@
     def test4b(self):
         story = self.story
         for code in (lpleg, hlcleg, bcleg, pcleg, scleg, plpleg):
-            code_name = code.func_code.co_name
+            code_name = code.__code__.co_name
             for i in ('standard', 'col auto', 'full auto', 'swatch set', 'swatch auto'):
                 d = code(i)
                 assert notFail(d),'getContents failed for %s %s' % (code_name,i)