From 54feef5c96f15077182aa26e75df65453ed4d201 Mon Sep 17 00:00:00 2001 From: cclauss <cclauss@bluewin.ch> Date: Sat, 11 Mar 2017 17:46:46 +0100 Subject: [PATCH] testEcho() now works with Python 2 and Python 3 (#2007) --- .../actionContainers/PythonActionContainerTests.scala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/src/test/scala/actionContainers/PythonActionContainerTests.scala b/tests/src/test/scala/actionContainers/PythonActionContainerTests.scala index ce25ffcd..06d9e1ef 100644 --- a/tests/src/test/scala/actionContainers/PythonActionContainerTests.scala +++ b/tests/src/test/scala/actionContainers/PythonActionContainerTests.scala @@ -43,11 +43,12 @@ class PythonActionContainerTests extends BasicActionRunnerTests with WskActorSys testEcho(Seq { ("python", """ + |from __future__ import print_function |import sys - |def main(dict): - | print 'hello stdout' - | print >> sys.stderr, 'hello stderr' - | return dict + |def main(args): + | print('hello stdout') + | print('hello stderr', file=sys.stderr) + | return args """.stripMargin) }) -- GitLab