From: <otm...@us...> - 2009-05-31 14:50:49
|
Revision: 6434 http://jython.svn.sourceforge.net/jython/?rev=6434&view=rev Author: otmarhumbel Date: 2009-05-31 14:50:48 +0000 (Sun, 31 May 2009) Log Message: ----------- quote the policy file if it contains spaces Modified Paths: -------------- trunk/jython/Lib/test/test_java_integration.py Modified: trunk/jython/Lib/test/test_java_integration.py =================================================================== --- trunk/jython/Lib/test/test_java_integration.py 2009-05-31 03:26:57 UTC (rev 6433) +++ trunk/jython/Lib/test/test_java_integration.py 2009-05-31 14:50:48 UTC (rev 6434) @@ -411,6 +411,9 @@ # script must lie within python.home for this test to work return policy = test_support.findfile("python_home.policy") + if len(policy.split(' ')) > 1: + # quote the policy file if it contains spaces + policy = '"%s"' % policy self.assertEquals(subprocess.call([sys.executable, "-J-Dpython.cachedir.skip=true", "-J-Djava.security.manager", "-J-Djava.security.policy=%s" % policy, script]), 0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |