This is an automated email from the ASF dual-hosted git repository. zjffdu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/master by this push: new a6769cbddf [HOTFIX] Fix Python plotting test failure a6769cbddf is described below commit a6769cbddf2ed5d6ca0e9f5f95c7641a4b605c99 Author: Jeff Zhang <zjf...@apache.org> AuthorDate: Fri Apr 22 15:35:16 2022 +0800 [HOTFIX] Fix Python plotting test failure --- .../org/apache/zeppelin/python/IPythonInterpreterTest.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/python/src/test/java/org/apache/zeppelin/python/IPythonInterpreterTest.java b/python/src/test/java/org/apache/zeppelin/python/IPythonInterpreterTest.java index 65e3786139..6f44cbb4a4 100644 --- a/python/src/test/java/org/apache/zeppelin/python/IPythonInterpreterTest.java +++ b/python/src/test/java/org/apache/zeppelin/python/IPythonInterpreterTest.java @@ -307,16 +307,8 @@ public class IPythonInterpreterTest extends BasePythonInterpreterTest { "df.hvplot()", context); assertEquals(context.out.toInterpreterResultMessage().get(0).getData(), InterpreterResult.Code.SUCCESS, result.code()); - interpreterResultMessages = context.out.toInterpreterResultMessage(); - - assertEquals(interpreterResultMessages.size() + ":" + context.out.toString(), - 3, interpreterResultMessages.size()); - // the first message is the warning text message. - assertEquals(InterpreterResult.Type.HTML, interpreterResultMessages.get(0).getType()); - assertEquals(InterpreterResult.Type.HTML, interpreterResultMessages.get(1).getType()); - assertEquals(InterpreterResult.Type.HTML, interpreterResultMessages.get(2).getType()); // docs_json is the source data of plotting which bokeh would use to render the plotting. - assertTrue(interpreterResultMessages.get(2).getData().contains("docs_json")); + assertTrue(context.out.toString(), context.out.toString().contains("docs_json")); }