diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-02 06:23:22 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-05-02 06:23:22 (GMT) |
commit | a6d01cec3ff3b945565653f96141c693af639924 (patch) | |
tree | dfd95ebfcff6958d101d402bd953071796e0aa04 /Lib/test/test_subprocess.py | |
parent | c4edb0ec81f437b84a4011e3a375892d48d0bd6c (diff) | |
download | cpython-a6d01cec3ff3b945565653f96141c693af639924.zip cpython-a6d01cec3ff3b945565653f96141c693af639924.tar.gz cpython-a6d01cec3ff3b945565653f96141c693af639924.tar.bz2 |
Try to fix breakage caused by patch #1479181, r45850
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 88a4baa..edf5bd0 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -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") |