mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Try to fix breakage caused by patch #1479181, r45850
This commit is contained in:
parent
c4edb0ec81
commit
a6d01cec3f
2 changed files with 4 additions and 4 deletions
|
@ -347,7 +347,7 @@ class ProcessTestCase(unittest.TestCase):
|
|||
stdout=subprocess.PIPE,
|
||||
universal_newlines=1)
|
||||
stdout = p.stdout.read()
|
||||
if hasattr(p.stdout, 'newlines'):
|
||||
if hasattr(file, 'newlines'):
|
||||
# Interpreter with universal newline support
|
||||
self.assertEqual(stdout,
|
||||
"line1\nline2\nline3\nline4\nline5\nline6")
|
||||
|
@ -374,7 +374,7 @@ class ProcessTestCase(unittest.TestCase):
|
|||
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||
universal_newlines=1)
|
||||
(stdout, stderr) = p.communicate()
|
||||
if hasattr(stdout, 'newlines'):
|
||||
if hasattr(file, 'newlines'):
|
||||
# Interpreter with universal newline support
|
||||
self.assertEqual(stdout,
|
||||
"line1\nline2\nline3\nline4\nline5\nline6")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue