summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-07-22 10:15:29 (GMT)
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-07-22 10:15:29 (GMT)
commitd141531eb5924159c58fcce779f78d7d04265f54 (patch)
tree9dfc1848978eed2d447e99df3e9abbec19af6cc9 /Lib/test/test_subprocess.py
parentde85ed69f4935e639b911606d24d3382ae399b9c (diff)
downloadcpython-d141531eb5924159c58fcce779f78d7d04265f54.zip
cpython-d141531eb5924159c58fcce779f78d7d04265f54.tar.gz
cpython-d141531eb5924159c58fcce779f78d7d04265f54.tar.bz2
Issue #27472: Add test.support.unix_shell as the path to the default shell.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index ba91bbc..092e2ce 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -1579,7 +1579,7 @@ class POSIXProcessTestCase(BaseTestCase):
fd, fname = tempfile.mkstemp()
# reopen in text mode
with open(fd, "w", errors="surrogateescape") as fobj:
- fobj.write("#!/bin/sh\n")
+ fobj.write("#!%s\n" % support.unix_shell)
fobj.write("exec '%s' -c 'import sys; sys.exit(47)'\n" %
sys.executable)
os.chmod(fname, 0o700)
@@ -1624,7 +1624,7 @@ class POSIXProcessTestCase(BaseTestCase):
fd, fname = tempfile.mkstemp()
# reopen in text mode
with open(fd, "w", errors="surrogateescape") as fobj:
- fobj.write("#!/bin/sh\n")
+ fobj.write("#!%s\n" % support.unix_shell)
fobj.write("exec '%s' -c 'import sys; sys.exit(47)'\n" %
sys.executable)
os.chmod(fname, 0o700)