From: <pj...@us...> - 2009-02-03 21:25:29
|
Revision: 6009 http://jython.svn.sourceforge.net/jython/?rev=6009&view=rev Author: pjenvey Date: 2009-02-03 21:25:23 +0000 (Tue, 03 Feb 2009) Log Message: ----------- include PATH for platforms lacking bash in /bin Modified Paths: -------------- trunk/jython/Lib/test/test_jython_initializer.py Modified: trunk/jython/Lib/test/test_jython_initializer.py =================================================================== --- trunk/jython/Lib/test/test_jython_initializer.py 2009-02-03 20:19:57 UTC (rev 6008) +++ trunk/jython/Lib/test/test_jython_initializer.py 2009-02-03 21:25:23 UTC (rev 6009) @@ -1,14 +1,16 @@ -import unittest +import os import subprocess import sys +import unittest from test import test_support class TestUsingInitializer(unittest.TestCase): + def test_syspath_initializer(self): - fn = test_support.findfile("check_for_initializer_in_syspath.py") - ret = subprocess.Popen([sys.executable, fn], - env={"CLASSPATH":"tests/data/initializer"}).wait() - self.assertEquals(0, ret) + fn = test_support.findfile('check_for_initializer_in_syspath.py') + env = dict(CLASSPATH='tests/data/initializer', + PATH=os.environ.get('PATH', '')) + self.assertEquals(0, subprocess.call([sys.executable, fn], env=env)) def test_main(): test_support.run_unittest(TestUsingInitializer) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |