summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-09-10 10:38:22 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-09-10 10:38:22 (GMT)
commitad6a99c0111a9291b5b0c09507cd821e9c4937fb (patch)
treeb13668a881ada05114efdad58b9a72b04da27b01 /Lib/test/test_subprocess.py
parent7f8ce85947b32c64332d8a1bd14efe755ff49a50 (diff)
downloadcpython-ad6a99c0111a9291b5b0c09507cd821e9c4937fb.zip
cpython-ad6a99c0111a9291b5b0c09507cd821e9c4937fb.tar.gz
cpython-ad6a99c0111a9291b5b0c09507cd821e9c4937fb.tar.bz2
Correct print() calls to print a blank line in various test cases
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index ab92112..160ccfe 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -426,7 +426,7 @@ class ProcessTestCase(BaseTestCase):
def test_communicate_pipe_fd_leak(self):
fd_directory = '/proc/%d/fd' % os.getpid()
num_fds_before_popen = len(os.listdir(fd_directory))
- p = subprocess.Popen([sys.executable, "-c", "print()"],
+ p = subprocess.Popen([sys.executable, "-c", "print('')"],
stdout=subprocess.PIPE)
p.communicate()
num_fds_after_communicate = len(os.listdir(fd_directory))