From 84b97f3259e037521b1c9c5aab6cb55f03f6d521 Mon Sep 17 00:00:00 2001 From: arnavb Date: Thu, 4 Dec 2025 16:09:45 +0000 Subject: [PATCH] update --- .../livy/repl/PythonInterpreterSpec.scala | 27 +------------------ .../apache/livy/repl/PythonSessionSpec.scala | 2 -- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/repl/src/test/scala/org/apache/livy/repl/PythonInterpreterSpec.scala b/repl/src/test/scala/org/apache/livy/repl/PythonInterpreterSpec.scala index e2d63e8c4..dc8083f9d 100644 --- a/repl/src/test/scala/org/apache/livy/repl/PythonInterpreterSpec.scala +++ b/repl/src/test/scala/org/apache/livy/repl/PythonInterpreterSpec.scala @@ -278,32 +278,7 @@ abstract class PythonBaseInterpreterSpec extends BaseInterpreterSpec { } } -class Python2InterpreterSpec extends PythonBaseInterpreterSpec { - - implicit val formats = DefaultFormats - - override def createInterpreter(): Interpreter = { - val sparkConf = new SparkConf() - PythonInterpreter(sparkConf, new SparkEntries(sparkConf)) - } - - // Scalastyle is treating unicode escape as non ascii characters. Turn off the check. - // scalastyle:off non.ascii.character.disallowed - it should "print unicode correctly" in withInterpreter { intp => - intp.execute("print(u\"\u263A\")") should equal(Interpreter.ExecuteSuccess( - TEXT_PLAIN -> "\u263A" - )) - intp.execute("""print(u"\u263A")""") should equal(Interpreter.ExecuteSuccess( - TEXT_PLAIN -> "\u263A" - )) - intp.execute("""print("\xE2\x98\xBA")""") should equal(Interpreter.ExecuteSuccess( - TEXT_PLAIN -> "\u263A" - )) - } - // scalastyle:on non.ascii.character.disallowed -} - -class Python3InterpreterSpec extends PythonBaseInterpreterSpec with BeforeAndAfterAll { +class PythonInterpreterSpec extends PythonBaseInterpreterSpec with BeforeAndAfterAll { implicit val formats = DefaultFormats diff --git a/repl/src/test/scala/org/apache/livy/repl/PythonSessionSpec.scala b/repl/src/test/scala/org/apache/livy/repl/PythonSessionSpec.scala index b54be11a6..170d3c723 100644 --- a/repl/src/test/scala/org/apache/livy/repl/PythonSessionSpec.scala +++ b/repl/src/test/scala/org/apache/livy/repl/PythonSessionSpec.scala @@ -170,8 +170,6 @@ abstract class PythonSessionSpec extends BaseSessionSpec(PySpark) { } } -class Python2SessionSpec extends PythonSessionSpec - class Python3SessionSpec extends PythonSessionSpec with BeforeAndAfterAll { override protected def withFixture(test: NoArgTest): Outcome = {