Message8050
test_subprocess_jy.py bundled with Jython 2.5.1. fails with the below error:
test test_subprocess_jy failed -- Traceback (most recent call last):
File \'L:\\apps\\ascii\\jython\\70files\\current\\win\\Lib\\test\\test_subprocess_jy.py\', line 13, in testDefaultEnvIsInherited
p1 = Popen([sys.executable, \'-c\',
File \'L:\\apps\\ascii\\jython\\70files\\current\\win\\Lib\\subprocess.py\', line 755, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File \'L:\\apps\\ascii\\jython\\70files\\current\\win\\Lib\\subprocess.py\', line 1269, in _execute_child
raise OSError(e.getMessage() or e)
OSError: Argument has embedded quote, use the explicit CMD.EXE call.
This test fails with both Oracle and IBM java from jdk7u21 b06.
Changes in Oracle 7u21 - Changes affects applications using Runtime.exec and ProcessBuilder.(http://www.oracle.com/technetwork/java/javase/7u21-relnotes-1932873.html#jruntime)
Based on this, I see that the Jython code will need to be modified to use "Cmd.exe" while running commands that contains quotes in it as detailed in the above error message |
|
Date |
User |
Action |
Args |
2013-06-19 05:58:36 | sowmyalakkappa | set | recipients:
+ sowmyalakkappa |
2013-06-19 05:58:36 | sowmyalakkappa | set | messageid: <1371621516.22.0.331735096789.issue2063@psf.upfronthosting.co.za> |
2013-06-19 05:58:35 | sowmyalakkappa | link | issue2063 messages |
2013-06-19 05:58:35 | sowmyalakkappa | create | |
|