mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix test case _zc to __zeppelin__
This commit is contained in:
parent
6697d6778d
commit
31af92ab57
2 changed files with 2 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ public class PythonInterpreterTest implements InterpreterOutputListener {
|
|||
@Test
|
||||
public void testRedefinitionZeppelinContext() {
|
||||
String pyRedefinitionCode = "z = 1\n";
|
||||
String pyRestoreCode = "z = _zc\n";
|
||||
String pyRestoreCode = "z = __zeppelin__\n";
|
||||
String pyValidCode = "z.input(\"test\")\n";
|
||||
|
||||
assertEquals(InterpreterResult.Code.SUCCESS, pythonInterpreter.interpret(pyValidCode, context).code());
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ public class PySparkInterpreterTest {
|
|||
public void testRedefinitionZeppelinContext() {
|
||||
if (getSparkVersionNumber() > 11) {
|
||||
String redefinitionCode = "z = 1\n";
|
||||
String restoreCode = "z = _zc\n";
|
||||
String restoreCode = "z = __zeppelin__\n";
|
||||
String validCode = "z.input(\"test\")\n";
|
||||
|
||||
assertEquals(InterpreterResult.Code.SUCCESS, pySparkInterpreter.interpret(validCode, context).code());
|
||||
|
|
|
|||
Loading…
Reference in a new issue