This is an automated email from the ASF dual-hosted git repository.
ksumit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-livy.git
The following commit(s) were added to refs/heads/master by this push:
new 024efa54 Fix testing with Python3 (#424)
024efa54 is described below
commit 024efa549bb490b6682ac6bd7fa5bf8b556b0d0c
Author: mvanderlee <[email protected]>
AuthorDate: Tue Oct 24 22:41:22 2023 +0200
Fix testing with Python3 (#424)
Fix print statement in tests to be Python 2 and Python 3 compatible. #408
---
.../src/test/scala/org/apache/livy/server/batch/BatchServletSpec.scala | 2 +-
.../src/test/scala/org/apache/livy/server/batch/BatchSessionSpec.scala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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 5a84035b..de74ebe2 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 @@ class BatchServletSpec extends
BaseSessionServletSpec[BatchSession, BatchRecover
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 20e6136b..401a8beb 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 @@ class BatchSessionSpec
try {
writer.write(
"""
- |print "hello world"
+ |print("hello world")
""".stripMargin)
} finally {
writer.close()