Correct print() calls to print a blank line in various test cases

This commit is contained in:
Martin Panter 2016-09-10 10:38:22 +00:00
parent 7f8ce85947
commit ad6a99c011
3 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -442,7 +442,7 @@ cgi_file4 = """\
import os
print("Content-type: text/html")
print()
print("")
print(os.environ["%s"])
"""

View File

@ -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))