commit | 024efa549bb490b6682ac6bd7fa5bf8b556b0d0c | [log] [tgz] |
---|---|---|
author | mvanderlee <918128+mvanderlee@users.noreply.github.com> | Tue Oct 24 22:41:22 2023 +0200 |
committer | GitHub <noreply@github.com> | Tue Oct 24 13:41:22 2023 -0700 |
tree | e9b2e5234c29944261d97878f129a0f6762f47dc | |
parent | 8b2e29fe9fd42c20395c63e1571f2492f005162b [diff] |
Fix testing with Python3 (#424) Fix print statement in tests to be Python 2 and Python 3 compatible. #408
diff --git a/server/src/test/scala/org/apache/livy/server/batch/BatchServletSpec.scala b/server/src/test/scala/org/apache/livy/server/batch/BatchServletSpec.scala index 5a84035..de74ebe 100644 --- a/server/src/test/scala/org/apache/livy/server/batch/BatchServletSpec.scala +++ b/server/src/test/scala/org/apache/livy/server/batch/BatchServletSpec.scala
@@ -43,7 +43,7 @@ try { writer.write( """ - |print "hello world" + |print("hello world") """.stripMargin) } finally { writer.close()
diff --git a/server/src/test/scala/org/apache/livy/server/batch/BatchSessionSpec.scala b/server/src/test/scala/org/apache/livy/server/batch/BatchSessionSpec.scala index 20e6136..401a8be 100644 --- a/server/src/test/scala/org/apache/livy/server/batch/BatchSessionSpec.scala +++ b/server/src/test/scala/org/apache/livy/server/batch/BatchSessionSpec.scala
@@ -48,7 +48,7 @@ try { writer.write( """ - |print "hello world" + |print("hello world") """.stripMargin) } finally { writer.close()