fix test case _zc to __zeppelin__

This commit is contained in:
CloverHearts 2017-04-12 16:52:33 +09:00
parent 6697d6778d
commit 31af92ab57
2 changed files with 2 additions and 2 deletions

View file

@ -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());

View file

@ -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());