Repository: zeppelin Updated Branches: refs/heads/branch-0.6 24be1dab5 -> 4386cda31 Updated Tags: refs/tags/v0.5.6-rc1 [created] e34579e81
[HOTFIX] Fixed PythonInterpreterTest ### What is this PR for? Returning back to pass the CI ### What type of PR is it? [Hot Fix] ### Todos * [x] - Fix test cases ### What is the Jira issue? * https://issues.apache.org/jira/browse/ZEPPELIN-1048 ### How should this be tested? ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Jongyoul Lee <[email protected]> Closes #1073 from jongyoul/hotfix-fix-pythoninterpretertest and squashes the following commits: 32be5d1 [Jongyoul Lee] Fixed test failed Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/4386cda3 Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/4386cda3 Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/4386cda3 Branch: refs/heads/branch-0.6 Commit: 4386cda317d480ab56fc91abde4d617629673ad9 Parents: 24be1da Author: Jongyoul Lee <[email protected]> Authored: Fri Jun 24 02:28:10 2016 +0900 Committer: Jongyoul Lee <[email protected]> Committed: Fri Jun 24 02:54:09 2016 +0900 ---------------------------------------------------------------------- .../org/apache/zeppelin/python/PythonInterpreterTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/4386cda3/python/src/test/java/org/apache/zeppelin/python/PythonInterpreterTest.java ---------------------------------------------------------------------- diff --git a/python/src/test/java/org/apache/zeppelin/python/PythonInterpreterTest.java b/python/src/test/java/org/apache/zeppelin/python/PythonInterpreterTest.java index 2944903..30a65e9 100644 --- a/python/src/test/java/org/apache/zeppelin/python/PythonInterpreterTest.java +++ b/python/src/test/java/org/apache/zeppelin/python/PythonInterpreterTest.java @@ -114,9 +114,9 @@ public class PythonInterpreterTest { assertNull(pythonInterpreter.getPy4JPort()); assertTrue(cmdHistory.contains("def help()")); - assertTrue(cmdHistory.contains("class PyZeppelinContext():")); + assertTrue(cmdHistory.contains("class PyZeppelinContext(object):")); assertTrue(cmdHistory.contains("z = PyZeppelinContext")); - assertTrue(cmdHistory.contains("def zeppelin_show")); + assertTrue(cmdHistory.contains("z.show")); assertFalse(cmdHistory.contains("GatewayClient")); } @@ -141,9 +141,9 @@ public class PythonInterpreterTest { assertNotNull(py4jPort); assertTrue(cmdHistory.contains("def help()")); - assertTrue(cmdHistory.contains("class PyZeppelinContext():")); + assertTrue(cmdHistory.contains("class PyZeppelinContext(object):")); assertTrue(cmdHistory.contains("z = PyZeppelinContext")); - assertTrue(cmdHistory.contains("def zeppelin_show")); + assertTrue(cmdHistory.contains("z.show")); assertTrue(cmdHistory.contains("GatewayClient(port=" + py4jPort + ")")); assertTrue(cmdHistory.contains("org.apache.zeppelin.display.Input"));
