summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--Lib/test/test_curses.py2
-rw-r--r--Lib/test/test_httpservers.py2
-rw-r--r--Lib/test/test_subprocess.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index bdb71e5..8a39cd0 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -63,7 +63,7 @@ class TestCurses(unittest.TestCase):
def setUp(self):
if verbose:
# just to make the test output a little more readable
- print()
+ print('')
self.stdscr = curses.initscr()
curses.savetty()
diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py
index 1b6339d..11f0d5d 100644
--- a/Lib/test/test_httpservers.py
+++ b/Lib/test/test_httpservers.py
@@ -442,7 +442,7 @@ cgi_file4 = """\
import os
print("Content-type: text/html")
-print()
+print("")
print(os.environ["%s"])
"""
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))