Skip to content

Commit 2b1191b

Browse files
committed
Establish java environment in test_jython_initializer (fixes #2810)
This change addresses a test failure observed in test_jython_initializer where the build Java is ahead of the default installed Java. We "inherit" java.home in the otherwise-stripped environment.
1 parent d3e7033 commit 2b1191b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/test/test_jython_initializer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def test_syspath_initializer(self):
1212
fn = test_support.findfile('check_for_initializer_in_syspath.py')
1313
jar = test_support.findfile('syspath_initializer.jar')
1414
env = dict(CLASSPATH=jar,
15+
JAVA_HOME=sys.registry['java.home'],
1516
PATH=os.environ.get('PATH', ''))
1617

1718
if WINDOWS:

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ https://github.com/jythontools/jython
88

99
Jython 2.7.2b3
1010
Bugs fixed
11+
- [ 2810 ] NoSuchMethodError in test_jython_initializer (Java 10+)
1112
- [ 2808 ] lib2to3 test failures on Windows JDK 11
1213
- [ 2846 ] Main module __name __ is not "__main__" under Java Scripting API
1314
- [ 2828 ] Update netty JARs to 4.1.45

0 commit comments

Comments
 (0)