Explorar o código

prevent test failures from jython localization bugs.

see #13967
Robert Muir %!s(int64=10) %!d(string=hai) anos
pai
achega
a798f4f711

+ 4 - 1
plugins/lang-python/src/test/java/org/elasticsearch/script/python/PythonSecurityTests.java

@@ -68,7 +68,10 @@ public class PythonSecurityTests extends ESTestCase {
             fail("did not get expected exception");
         } catch (PyException expected) {
             Throwable cause = expected.getCause();
-            assertNotNull("null cause for exception: " + expected, cause);
+            // TODO: fix jython localization bugs: https://github.com/elastic/elasticsearch/issues/13967
+            // this is the correct assert:
+            // assertNotNull("null cause for exception: " + expected, cause);
+            assertNotNull("null cause for exception", cause);
             assertTrue("unexpected exception: " + cause, cause instanceof SecurityException);
         }
     }