Skip to content
Snippets Groups Projects
Commit 54feef5c authored by cclauss's avatar cclauss Committed by rodric rabbah
Browse files

testEcho() now works with Python 2 and Python 3 (#2007)

parent 14233fe4
No related branches found
No related tags found
No related merge requests found
...@@ -43,11 +43,12 @@ class PythonActionContainerTests extends BasicActionRunnerTests with WskActorSys ...@@ -43,11 +43,12 @@ class PythonActionContainerTests extends BasicActionRunnerTests with WskActorSys
testEcho(Seq { testEcho(Seq {
("python", """ ("python", """
|from __future__ import print_function
|import sys |import sys
|def main(dict): |def main(args):
| print 'hello stdout' | print('hello stdout')
| print >> sys.stderr, 'hello stderr' | print('hello stderr', file=sys.stderr)
| return dict | return args
""".stripMargin) """.stripMargin)
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment