mirror of https://github.com/python/cpython
Patch #1559413: Fix test_cmd_line if sys.executable contains a space.
Will backport.
This commit is contained in:
parent
71436f0229
commit
cd1210a55f
|
@ -6,7 +6,7 @@ import subprocess
|
||||||
|
|
||||||
class CmdLineTest(unittest.TestCase):
|
class CmdLineTest(unittest.TestCase):
|
||||||
def start_python(self, cmd_line):
|
def start_python(self, cmd_line):
|
||||||
outfp, infp = popen2.popen4('%s %s' % (sys.executable, cmd_line))
|
outfp, infp = popen2.popen4('"%s" %s' % (sys.executable, cmd_line))
|
||||||
infp.close()
|
infp.close()
|
||||||
data = outfp.read()
|
data = outfp.read()
|
||||||
outfp.close()
|
outfp.close()
|
||||||
|
|
|
@ -624,6 +624,8 @@ Extension Modules
|
||||||
Tests
|
Tests
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Patch #1559413: Fix test_cmd_line if sys.executable contains a space.
|
||||||
|
|
||||||
- Added test.test_support.TransientResource which is a context manager to
|
- Added test.test_support.TransientResource which is a context manager to
|
||||||
surround calls to resources that are not guaranteed to work even if
|
surround calls to resources that are not guaranteed to work even if
|
||||||
test.test_support.requires says that the resource should exist.
|
test.test_support.requires says that the resource should exist.
|
||||||
|
|
Loading…
Reference in New Issue