tests/test_platypus_general.py
branchpy33
changeset 3721 0c93dd8ff567
parent 3617 ae5744e97c42
child 3794 398ea04239b5
--- a/tests/test_platypus_general.py	Fri Feb 15 15:54:16 2013 +0000
+++ b/tests/test_platypus_general.py	Tue Apr 30 14:20:22 2013 +0100
@@ -537,8 +537,8 @@
             self.handle_flowable(flowables)
 
     def build(self, flowables1, flowables2):
-        assert filter(lambda x: not isinstance(x,Flowable), flowables1)==[], "flowables1 argument error"
-        assert filter(lambda x: not isinstance(x,Flowable), flowables2)==[], "flowables2 argument error"
+        assert [x for x in flowables1 if not isinstance(x,Flowable)]==[], "flowables1 argument error"
+        assert [x for x in flowables2 if not isinstance(x,Flowable)]==[], "flowables2 argument error"
         self._startBuild()
         while (len(flowables1) > 0 or len(flowables1) > 0):
             self.clean_hanging()
@@ -548,7 +548,7 @@
         self._endBuild()
 
 def showProgress(pageNo):
-    print 'CALLBACK SAYS: page %d' % pageNo
+    print('CALLBACK SAYS: page %d' % pageNo)
 
 
 def run():