[Jython-checkins] jython: Merged PR #68 - #2554 Add a test skip if no Java compiler is available (e.g JRE
stefan.richthofer
jython-checkins at python.org
Sun Apr 16 09:08:17 EDT 2017
https://hg.python.org/jython/rev/fc946dea9c0f
changeset: 8074:fc946dea9c0f
user: James Mudd <james.mudd at gmail.com>
date: Sun Apr 16 15:08:06 2017 +0200
summary:
Merged PR #68 - #2554 Add a test skip if no Java compiler is available (e.g JRE not JDK)
files:
Lib/test/test_java_integration.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_java_integration.py b/Lib/test/test_java_integration.py
--- a/Lib/test/test_java_integration.py
+++ b/Lib/test/test_java_integration.py
@@ -637,6 +637,8 @@
return self._source
+ at unittest.skipIf(ToolProvider.getSystemJavaCompiler() is None,
+ "No Java compiler available. Is JAVA_HOME pointing to a JDK?")
def compile_java_source(options, class_name, source):
"""Compiles a single java source "file" contained in the string source
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list